From 8195298de1077f87acedac47dfff1702d0929da3 Mon Sep 17 00:00:00 2001 From: ashwink0 Date: Thu, 19 Aug 2021 20:14:48 -0700 Subject: [PATCH] Remove virtual bells --- src/App.vue | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/src/App.vue b/src/App.vue index e69eba6..eead0a6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -151,27 +151,7 @@ - - - Enable virtual bells - - - - - - - - - Enable notifications - Get notified at the start of each Zoom class - Not supported in this browser - - - - - - @@ -493,21 +473,6 @@ export default { const startTone = new Audio("/tones/start.mp3"); const endTone = new Audio("/tones/end.mp3"); startTone.volume = endTone.volume = 0.7; - this.socket.on("virtual bell", (isStartBell, periodName) => { - if (this.settings.enableBells) - isStartBell ? startTone.play() : endTone.play(); - if (isStartBell && this.settings.enableNotifications && this.settings.links[periodName]) { - const notif = new Notification(periodName+" is starting", { - body: "Click to join this class!", - icon: "/img/icons/android-chrome-192x192.png", - }); - notif.addEventListener("click", () => { - window.open(this.settings.links[periodName]); - notif.close(); - }); - } - this.socket.emit("virtual bell ack", this.settings.enableBells, this.settings.enableNotifications); - }); this.socket.on("pong", () => { let now = new Date(); this.io.lastConnected = now;