diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/platform/chrome.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/platform/chrome.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/taler-wallet-webextension/src/platform/chrome.ts b/packages/taler-wallet-webextension/src/platform/chrome.ts index 65670fb69..1295fa514 100644 --- a/packages/taler-wallet-webextension/src/platform/chrome.ts +++ b/packages/taler-wallet-webextension/src/platform/chrome.ts @@ -774,6 +774,7 @@ function listenNetworkConnectionState( function notifyOnline() { notify("on"); } + notify(window.navigator.onLine ? "on" : "off"); window.addEventListener("offline", notifyOffline); window.addEventListener("online", notifyOnline); return () => { |