Default web push to enabled on PWAs
This commit is contained in:
parent
dd02267f9b
commit
48d1f7887d
3 changed files with 17 additions and 3 deletions
|
@ -36,7 +36,7 @@ import { Info } from "@mui/icons-material";
|
|||
import { useOutletContext } from "react-router-dom";
|
||||
import theme from "./theme";
|
||||
import userManager from "../app/UserManager";
|
||||
import { playSound, shuffle, sounds, validUrl } from "../app/utils";
|
||||
import { isLaunchedPWA, playSound, shuffle, sounds, validUrl } from "../app/utils";
|
||||
import session from "../app/Session";
|
||||
import routes from "./routes";
|
||||
import accountApi, { Permission, Role } from "../app/AccountApi";
|
||||
|
@ -86,7 +86,7 @@ const Notifications = () => {
|
|||
<Sound />
|
||||
<MinPriority />
|
||||
<DeleteAfter />
|
||||
{notifier.pushPossible() && <WebPushEnabled />}
|
||||
{!isLaunchedPWA() && notifier.pushPossible() && <WebPushEnabled />}
|
||||
</PrefGroup>
|
||||
</Card>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue