mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-07 22:19:02 +00:00
expose isMenuOpen from worker
This commit is contained in:
parent
da70a3ed4f
commit
a9a6c33436
@ -1 +1 @@
|
|||||||
Subproject commit 4bba5136828cb36ff8d6a8b38779b9e5537fae9a
|
Subproject commit 3be5874229d9ea366f89854070b06848901a8d4f
|
@ -53,6 +53,8 @@ module.exports.focusMenu = async () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
module.exports.isMenuOpen = () => !!enhancerMenu;
|
||||||
|
|
||||||
module.exports.focusNotion = () => {
|
module.exports.focusNotion = () => {
|
||||||
const { env } = require('notion-enhancer/api/index.cjs'),
|
const { env } = require('notion-enhancer/api/index.cjs'),
|
||||||
{ BrowserWindow } = require('electron'),
|
{ BrowserWindow } = require('electron'),
|
||||||
@ -64,7 +66,7 @@ module.exports.focusNotion = () => {
|
|||||||
|
|
||||||
module.exports.reload = () => {
|
module.exports.reload = () => {
|
||||||
const { app } = require('electron');
|
const { app } = require('electron');
|
||||||
app.relaunch();
|
app.relaunch({ args: process.argv.slice(1).filter((arg) => arg !== '--startup') });
|
||||||
app.exit(0);
|
app.exit(0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user