mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
F5 now reloads and ctrl-shift-i shows up dev tools
This commit is contained in:
parent
c371ffb597
commit
fed1cab2c9
@ -32,10 +32,10 @@
|
|||||||
"serve-favicon": "~2.4.5",
|
"serve-favicon": "~2.4.5",
|
||||||
"session-file-store": "^1.1.2",
|
"session-file-store": "^1.1.2",
|
||||||
"simple-node-logger": "^0.93.30",
|
"simple-node-logger": "^0.93.30",
|
||||||
"sqlite": "^2.8.0"
|
"sqlite": "^2.8.0",
|
||||||
|
"devtron": "^1.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"devtron": "^1.1.0",
|
|
||||||
"electron-compile": "^6.4.2",
|
"electron-compile": "^6.4.2",
|
||||||
"electron-packager": "^8.0.0",
|
"electron-packager": "^8.0.0",
|
||||||
"electron-prebuilt-compile": "1.8.2-beta.2",
|
"electron-prebuilt-compile": "1.8.2-beta.2",
|
||||||
|
@ -24,6 +24,20 @@ $(document).bind('keydown', 'alt+t', () => {
|
|||||||
$('#note-detail').summernote('insertText', dateString);
|
$('#note-detail').summernote('insertText', dateString);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).bind('keydown', 'f5', () => {
|
||||||
|
location.reload();
|
||||||
|
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).bind('keydown', 'ctrl+shift+i', () => {
|
||||||
|
if (isElectron()) {
|
||||||
|
require('remote').getCurrentWindow().toggleDevTools();
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$(window).on('beforeunload', () => {
|
$(window).on('beforeunload', () => {
|
||||||
// this makes sure that when user e.g. reloads the page or navigates away from the page, the note's content is saved
|
// this makes sure that when user e.g. reloads the page or navigates away from the page, the note's content is saved
|
||||||
// this sends the request asynchronously and doesn't wait for result
|
// this sends the request asynchronously and doesn't wait for result
|
||||||
|
@ -1 +1 @@
|
|||||||
module.exports = { buildDate:"2017-11-13T23:36:03-05:00", buildRevision: "fbce84e779951056c0e8b4d5395ee2fbe426555e" };
|
module.exports = { buildDate:"2017-11-16T19:29:52-05:00", buildRevision: "c371ffb5974d8dccaec76c78dfa91dd54fcc624e" };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user