chore: show android system webview update prompt if app fails to load (#2318)
This commit is contained in:
@@ -16,7 +16,14 @@
|
||||
window.plansUrl = "https://standardnotes.com/plans";
|
||||
window.dashboardUrl = "https://standardnotes.com/dashboard";
|
||||
</script>
|
||||
|
||||
<script>
|
||||
window.onerror = function (message, source, lineno, colno, error) {
|
||||
if (document.readyState === "complete") {
|
||||
return
|
||||
}
|
||||
window.ReactNativeWebView.postMessage("appLoadError");
|
||||
};
|
||||
</script>
|
||||
<script src="web-src/app.js"></script>
|
||||
</head>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user