Skip to content

Commit

Permalink
Fix: Error in events.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ollm committed Jan 27, 2025
1 parent a7df513 commit 3d51f9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"url": "git+https://github.com/ollm/OpenComic.git"
},
"scripts": {
"start": "npm run prebuild-start && electron scripts/main.js",
"start": "npm run prebuild-start && electron scripts/main.js --no-sandbox",
"test": "node scripts/test.js",
"rebuild": "electron-rebuild -f -w sharp",
"rebuild2": "electron-builder node-gyp-rebuild",
Expand Down
2 changes: 1 addition & 1 deletion scripts/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ async function desactiveMenu(query, query2 = false, insideMenu = false)
{
await app.sleep(5);

if(typeof query2 === 'string')
if(typeof query === 'string')
dom.queryAll(query).children(false, true).removeClass('a').addClass('d');
else
dom.this(query).children(false, true).removeClass('a').addClass('d');
Expand Down

0 comments on commit 3d51f9e

Please sign in to comment.