Initial commit
This commit is contained in:
8
app/assets/js/script.js
Normal file
8
app/assets/js/script.js
Normal file
@@ -0,0 +1,8 @@
|
||||
const remote = require('electron').remote;
|
||||
|
||||
document.addEventListener("keydown", function (e) {
|
||||
if (e.keyCode === 123) { // F12
|
||||
var window = remote.getCurrentWindow();
|
||||
window.toggleDevTools();
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user