diff --git a/insert/repo b/insert/repo index 4bba513..3be5874 160000 --- a/insert/repo +++ b/insert/repo @@ -1 +1 @@ -Subproject commit 4bba5136828cb36ff8d6a8b38779b9e5537fae9a +Subproject commit 3be5874229d9ea366f89854070b06848901a8d4f diff --git a/insert/worker.cjs b/insert/worker.cjs index 336cae9..1e38ed0 100644 --- a/insert/worker.cjs +++ b/insert/worker.cjs @@ -53,6 +53,8 @@ module.exports.focusMenu = async () => { }); }; +module.exports.isMenuOpen = () => !!enhancerMenu; + module.exports.focusNotion = () => { const { env } = require('notion-enhancer/api/index.cjs'), { BrowserWindow } = require('electron'), @@ -64,7 +66,7 @@ module.exports.focusNotion = () => { module.exports.reload = () => { const { app } = require('electron'); - app.relaunch(); + app.relaunch({ args: process.argv.slice(1).filter((arg) => arg !== '--startup') }); app.exit(0); };