Fix fileQuitItemUnix is null
error in PDF reader window
This commit is contained in:
parent
4cfe682367
commit
b2b768cd4b
1 changed files with 2 additions and 2 deletions
|
@ -76,10 +76,10 @@ window.addEventListener('DOMContentLoaded', () => {
|
|||
}
|
||||
|
||||
if (isWin) {
|
||||
fileQuitItemUnix.hidden = true;
|
||||
if (fileQuitItemUnix) fileQuitItemUnix.hidden = true;
|
||||
}
|
||||
else {
|
||||
fileQuitItemWin.hidden = true;
|
||||
if (fileQuitItemWin) fileQuitItemWin.hidden = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue