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 967f8a61f9
commit c5c02bc7e7
Signed by: dragonwocky
GPG Key ID: C7A48B7846AA706D

View File

@ -1077,7 +1077,8 @@ module.exports = (store, __exports) => {
}).then(() => { }).then(() => {
if ( if (
document.getElementById('notion').getAttribute('src') === document.getElementById('notion').getAttribute('src') ===
'notion://www.notion.so' 'notion://www.notion.so' &&
idToNotionURL(store().default_page)
) { ) {
document document
.getElementById('notion') .getElementById('notion')