aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/fastmail/webview-unsafe.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/fastmail/webview-unsafe.js')
-rw-r--r--recipes/fastmail/webview-unsafe.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes/fastmail/webview-unsafe.js b/recipes/fastmail/webview-unsafe.js
new file mode 100644
index 0000000..7588988
--- /dev/null
+++ b/recipes/fastmail/webview-unsafe.js
@@ -0,0 +1,10 @@
1const interval = setInterval(() => {
2 if (!window.O || !window.O.WindowController) return;
3 window.O.WindowController.openExternal = function (href) {
4 const temp = document.createElement('a');
5 temp.setAttribute('href', href);
6 temp.setAttribute('target', '_blank');
7 temp.click();
8 };
9 clearInterval(interval);
10}, 200);