don't try loading the default page if it doesn't exist

This commit is contained in:
dragonwocky 2020-11-11 23:04:23 +11:00
parent d919493094
commit 81f539f65e

View File

@ -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')