aboutsummaryrefslogtreecommitdiff
path: root/app/src/web
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-09-21 18:03:23 -0700
committerAllan Wang <me@allanwang.ca>2019-09-21 18:03:23 -0700
commitae3b956497f8eb1b019752f9588b04798304c6bd (patch)
treedc63855729ef5d2b880f434d4b2d16d04ace7445 /app/src/web
parent96908453abbd7e40e13af4359d1bce4524b979a6 (diff)
downloadfrost-ae3b956497f8eb1b019752f9588b04798304c6bd.tar.gz
frost-ae3b956497f8eb1b019752f9588b04798304c6bd.tar.bz2
frost-ae3b956497f8eb1b019752f9588b04798304c6bd.zip
Disable click launches from notification page
Diffstat (limited to 'app/src/web')
-rw-r--r--app/src/web/ts/click_a.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/web/ts/click_a.ts b/app/src/web/ts/click_a.ts
index 1fd63683..8a7cc48c 100644
--- a/app/src/web/ts/click_a.ts
+++ b/app/src/web/ts/click_a.ts
@@ -42,7 +42,10 @@
type EventHandler = (e: Event, target: HTMLElement) => Boolean
const _frostGeneral: EventHandler = (e, target) => {
- // Notifications are two layers under
+ // We now disable clicks for the main notification page
+ if (document.getElementById("notifications_list")) {
+ return false
+ }
const url = _parentUrl(target, 2);
return Frost.loadUrl(url);
};