🐛 Fix: some bugs

ISSUES CLOSED: #722
This commit is contained in:
PiEgg
2021-08-21 10:42:52 +08:00
parent 2d3e779e0b
commit a676c083fe
8 changed files with 58 additions and 12 deletions

View File

@@ -96,8 +96,8 @@ class LifeCycle {
handleStartUpFiles(process.argv, process.cwd())
}
if (global.notificationList?.length > 0) {
while (global.notificationList.length) {
if (global.notificationList && global.notificationList?.length > 0) {
while (global.notificationList?.length) {
const option = global.notificationList.pop()
const notice = new Notification(option!)
notice.show()