From a51ae25ec7475c7e20fc1485e93e4996117474a5 Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Thu, 15 Apr 2021 14:00:27 +0200 Subject: [PATCH] use 'e' to edit only if accessed via file:// --- assets/js/sandpoints.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/sandpoints.js b/assets/js/sandpoints.js index f4a8b23..c283f5f 100644 --- a/assets/js/sandpoints.js +++ b/assets/js/sandpoints.js @@ -67,7 +67,7 @@ function editPage(repoJsId) { ev} window.addEventListener("keyup", (e)=> { - if (e.key == "e") { + if (e.key == "e" && location.protocol == "file:") { editPage(sandpointsPageId) } })