aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/notion-calendar/webview-unsafe.js
blob: f028f4c6b71b4f796a3ff85ea97dc8baddead89e (plain) (blame)
1
2
3
4
5
6
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;
  };
}