Added app icon - platform independent.

This commit is contained in:
Daniel Scalzi
2017-04-22 20:59:26 -04:00
parent acffbec100
commit 9aa9ba7b1a
9 changed files with 3686 additions and 13 deletions

View File

@@ -1,8 +1,36 @@
const remote = require('electron').remote;
const remote = require('electron').remote
document.addEventListener("keydown", function (e) {
if (e.keyCode === 123) { // F12
var window = remote.getCurrentWindow();
window.toggleDevTools();
//Opens DevTools window if you type "wcdev" in sequence.
//This will crash the program if you are using multiple
//DevTools, for example the chrome debugger in VS Code.
const match = [87, 67, 68, 69, 86]
let at = 0;
document.addEventListener('keydown', function (e) {
switch(e.keyCode){
case match[0]:
if(at === 0) ++at
break
case match[1]:
if(at === 1) ++at
break
case match[2]:
if(at === 2) ++at
break
case match[3]:
if(at === 3) ++at
case match[4]:
if(at === 4) ++at
break
default:
at = 0
}
});
if(at === 5) {
var window = remote.getCurrentWindow()
window.toggleDevTools()
console.log('I would open it now!')
at = 0
}
})
console.log('Can you see me? ( ͡° ͜ʖ ͡°) Then it\'s working!')