diff --git a/index.js b/index.js index 2f1d326..3be6424 100644 --- a/index.js +++ b/index.js @@ -49,6 +49,7 @@ let statusMessage; */ const _Instance = 'https://ntfy.sh/app'; +const _Datetime = 'YYYY-MM-DD hh:mm a'; const _Interval = 5; /* @@ -64,7 +65,8 @@ const store = new Store({ bHotkeys: 0, bDevTools: 0, bQuitOnClose: 0, - bPersistentNoti: 0 + bPersistentNoti: 0, + datetime: _Datetime } }); @@ -97,7 +99,7 @@ const menu_Main = [ submenu: [ { label: 'Quit', - accelerator: 'CTRL+Q', + accelerator: (bHotkeysEnabled == 1 || store.get('bHotkeys') == 1) ? 'CTRL+Q' : '', click: function () { app.isQuiting = true; app.quit(); @@ -111,7 +113,7 @@ const menu_Main = [ submenu: [ { label: 'General', - accelerator: 'CTRL+G', + accelerator: (bHotkeysEnabled == 1 || store.get('bHotkeys') == 1) ? 'CTRL+G' : '', click: function () { prompt( { @@ -171,7 +173,7 @@ const menu_Main = [ }, { label: 'URL', - accelerator: 'CTRL+U', + accelerator: (bHotkeysEnabled == 1 || store.get('bHotkeys') == 1) ? 'CTRL+U' : '', click: function () { prompt( { @@ -210,7 +212,7 @@ const menu_Main = [ }, { label: 'API Token', - accelerator: 'CTRL+T', + accelerator: (bHotkeysEnabled == 1 || store.get('bHotkeys') == 1) ? 'CTRL+T' : '', click: function () { prompt( { @@ -241,7 +243,7 @@ const menu_Main = [ }, { label: 'Topics', - accelerator: 'CTRL+SHIFT+T', + accelerator: (bHotkeysEnabled == 1 || store.get('bHotkeys') == 1) ? 'CTRL+SHIFT+T' : '', click: function () { prompt( { @@ -272,18 +274,18 @@ const menu_Main = [ }, { label: 'Notifications', - accelerator: 'CTRL+SHIFT+N', + accelerator: (bHotkeysEnabled == 1 || store.get('bHotkeys') == 1) ? 'CTRL+N' : '', click: function () { prompt( { title: 'Notifications', - label: '