aboutsummaryrefslogtreecommitdiff
path: root/app/src/web/ts/click_a.ts
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-09-22 14:42:23 -0700
committerGitHub <noreply@github.com>2019-09-22 14:42:23 -0700
commit8c9d1df82f31b7eca5fd383bf51c8634fa0696ee (patch)
tree08cbb88d343552c3eb9d52b1bf2fd5a2ec6e3617 /app/src/web/ts/click_a.ts
parent96908453abbd7e40e13af4359d1bce4524b979a6 (diff)
parent8d355d472f579d10707c8a0b65fb424eb283265d (diff)
downloadfrost-8c9d1df82f31b7eca5fd383bf51c8634fa0696ee.tar.gz
frost-8c9d1df82f31b7eca5fd383bf51c8634fa0696ee.tar.bz2
frost-8c9d1df82f31b7eca5fd383bf51c8634fa0696ee.zip
Merge pull request #1552 from AllanWang/notifications-page
Disable click launches from notification page
Diffstat (limited to 'app/src/web/ts/click_a.ts')
-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);
};