Merge branch 'develop' of github.com:thecodingmachine/workadventure into dev_main_merge

This commit is contained in:
_Bastler
2021-05-17 15:25:11 +02:00
8 changed files with 19 additions and 5 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import type {UserInputManager} from "../Phaser/UserInput/UserInputManager";
import {localUserStore} from "../Connexion/LocalUserStore";
import type {UserSimplePeerInterface} from "./SimplePeer";
import {SoundMeter} from "../Phaser/Components/SoundMeter";
import {DISABLE_NOTIFICATIONS} from "../Enum/EnvironmentVariable";
declare const navigator:any; // eslint-disable-line @typescript-eslint/no-explicit-any
@@ -856,7 +857,7 @@ export class MediaManager {
public getNotification(){
//Get notification
if (window.Notification && Notification.permission !== "granted") {
if (!DISABLE_NOTIFICATIONS && window.Notification && Notification.permission !== "granted") {
Notification.requestPermission().catch((err) => {
console.error(`Notification permission error`, err);
});