expose isMenuOpen from worker

This commit is contained in:
dragonwocky 2021-12-03 00:56:51 +11:00
parent da70a3ed4f
commit a9a6c33436
Signed by: dragonwocky
GPG Key ID: 86DFC3C312A56010
2 changed files with 4 additions and 2 deletions

@ -1 +1 @@
Subproject commit 4bba5136828cb36ff8d6a8b38779b9e5537fae9a
Subproject commit 3be5874229d9ea366f89854070b06848901a8d4f

View File

@ -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);
};