From 85cd37fd86786ec269d4b3c4e1444f7cfa3f25fd Mon Sep 17 00:00:00 2001 From: Natsumi Date: Sat, 2 Oct 2021 09:02:36 +1300 Subject: [PATCH] Clear VR notifications on disable --- html/src/app.js | 1 + html/src/vr.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/html/src/app.js b/html/src/app.js index 94412ecd..983c3f68 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -9310,6 +9310,7 @@ speechSynthesis.getVoices(); ); this.updateSharedFeed(true); this.updateVRConfigVars(); + AppApi.ExecuteVrOverlayFunction('notyClear', ''); }; $app.data.TTSvoices = speechSynthesis.getVoices(); $app.methods.saveNotificationTTS = function () { diff --git a/html/src/vr.js b/html/src/vr.js index 7d7f5d31..f5aab843 100644 --- a/html/src/vr.js +++ b/html/src/vr.js @@ -490,6 +490,10 @@ import configRepository from './repository/config.js'; return text; }; + $app.methods.notyClear = function () { + Noty.closeAll(); + }; + $app = new Vue($app); window.$app = $app; })();