use 'e' to edit only if accessed via file://

This commit is contained in:
Marcell Mars 2021-04-15 14:00:27 +02:00
parent 085d6934bf
commit a51ae25ec7

View file

@ -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)
}
})