Skip to content

Build your personal knowledge base with Trilium Notes

F5 now reloads and ctrl-shift-i shows up dev tools

azivnerfed1cab2c9df
diff --git a/package.json b/package.json
index d2d951e856..2eb91529d7 100644
--- a/package.json
+++ b/package.json
@@ -32,10 +32,10 @@
"serve-favicon": "~2.4.5",
"session-file-store": "^1.1.2",
"simple-node-logger": "^0.93.30",
- "sqlite": "^2.8.0"
+ "sqlite": "^2.8.0",
+ "devtron": "^1.4.0"
},
"devDependencies": {
- "devtron": "^1.1.0",
"electron-compile": "^6.4.2",
"electron-packager": "^8.0.0",
"electron-prebuilt-compile": "1.8.2-beta.2",
diff --git a/public/javascripts/init.js b/public/javascripts/init.js
index 8517163bcb..66efd2e79f 100644
--- a/public/javascripts/init.js
+++ b/public/javascripts/init.js
@@ -24,6 +24,20 @@ $(document).bind('keydown', 'alt+t', () => {
$('#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', () => {
// 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
diff --git a/services/build.js b/services/build.js
index cd4ef45875..a5d8a060f1 100644
--- a/services/build.js
+++ b/services/build.js
@@ -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" };