From 099f02943602d42d42bc20fd173f81af7da40625 Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Tue, 9 Apr 2024 23:47:47 +0100 Subject: Fix notion calendar login (#529) --- recipes/notion-calendar/webview-unsafe.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 recipes/notion-calendar/webview-unsafe.js (limited to 'recipes/notion-calendar/webview-unsafe.js') 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 @@ +// Workaround for Notion's login window with Google OAuth +if (window.location.href === 'https://calendar.notion.so/login') { + window.open = function (url) { + const newUrl = url.replace('popup=true', 'popup=false'); + window.location.href = newUrl; + }; +} -- cgit v1.2.3-70-g09d2