From 7b1511a243aa322462d29d15f19f9c2a8bfc67ef Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 19 Nov 2016 23:03:58 +0100 Subject: circumvent chrome bug for JS-less wallet detection --- src/content_scripts/notify.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/content_scripts/notify.ts') diff --git a/src/content_scripts/notify.ts b/src/content_scripts/notify.ts index 6fb4eae47..022eada07 100644 --- a/src/content_scripts/notify.ts +++ b/src/content_scripts/notify.ts @@ -43,6 +43,11 @@ namespace TalerNotify { " supported"); } + if (document.documentElement.getAttribute("data-taler-nojs")) { + document.dispatchEvent(new Event("taler-probe-result")); + } + + function subst(url: string, H_contract: string) { url = url.replace("${H_contract}", H_contract); url = url.replace("${$}", "$"); -- cgit v1.2.3