diff options
author | André Oliveira <37463445+SpecialAro@users.noreply.github.com> | 2024-04-09 23:47:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-09 23:47:47 +0100 |
commit | 099f02943602d42d42bc20fd173f81af7da40625 (patch) | |
tree | 204ab2cb92783cd632be4c5b2a374f27c711621c /recipes/notion-calendar/webview-unsafe.js | |
parent | Bump tj-actions/changed-files from 42 to 44 (#523) (diff) | |
download | ferdium-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.js | 7 |
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 | ||
2 | if (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 | } | ||