From c5c02bc7e7ed95d42b1ea0a33437601225c04acd Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Wed, 11 Nov 2020 23:04:23 +1100 Subject: [PATCH] don't try loading the default page if it doesn't exist --- mods/core/render.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/core/render.js b/mods/core/render.js index aa821f4..8911daf 100644 --- a/mods/core/render.js +++ b/mods/core/render.js @@ -1077,7 +1077,8 @@ module.exports = (store, __exports) => { }).then(() => { if ( document.getElementById('notion').getAttribute('src') === - 'notion://www.notion.so' + 'notion://www.notion.so' && + idToNotionURL(store().default_page) ) { document .getElementById('notion')