aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/notion-calendar/webview-unsafe.js
diff options
context:
space:
mode:
authorLibravatar André Oliveira <37463445+SpecialAro@users.noreply.github.com>2024-04-09 23:47:47 +0100
committerLibravatar GitHub <noreply@github.com>2024-04-09 23:47:47 +0100
commit099f02943602d42d42bc20fd173f81af7da40625 (patch)
tree204ab2cb92783cd632be4c5b2a374f27c711621c /recipes/notion-calendar/webview-unsafe.js
parentBump tj-actions/changed-files from 42 to 44 (#523) (diff)
downloadferdium-recipes-099f02943602d42d42bc20fd173f81af7da40625.tar.gz
ferdium-recipes-099f02943602d42d42bc20fd173f81af7da40625.tar.zst
ferdium-recipes-099f02943602d42d42bc20fd173f81af7da40625.zip
Fix notion calendar login (#529)
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}