diff options
Diffstat (limited to 'src/content_scripts')
-rw-r--r-- | src/content_scripts/notify.js | 3 | ||||
-rw-r--r-- | src/content_scripts/notify.ts | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/content_scripts/notify.js b/src/content_scripts/notify.js index 43ded3d95..449697061 100644 --- a/src/content_scripts/notify.js +++ b/src/content_scripts/notify.js @@ -43,6 +43,9 @@ var TalerNotify; console.error("Taler wallet lib not included, HTTP 402 payments not" + " supported"); } + if (document.documentElement.getAttribute("data-taler-nojs")) { + document.dispatchEvent(new Event("taler-probe-result")); + } function subst(url, H_contract) { url = url.replace("${H_contract}", H_contract); url = url.replace("${$}", "$"); 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("${$}", "$"); |