aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/notion-calendar/webview-unsafe.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/notion-calendar/webview-unsafe.js')
-rw-r--r--recipes/notion-calendar/webview-unsafe.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes/notion-calendar/webview-unsafe.js b/recipes/notion-calendar/webview-unsafe.js
new file mode 100644
index 0000000..f028f4c
--- /dev/null
+++ b/recipes/notion-calendar/webview-unsafe.js
@@ -0,0 +1,7 @@
1// Workaround for Notion's login window with Google OAuth
2if (window.location.href === 'https://calendar.notion.so/login') {
3 window.open = function (url) {
4 const newUrl = url.replace('popup=true', 'popup=false');
5 window.location.href = newUrl;
6 };
7}