use 'e' to edit only if accessed via file://
This commit is contained in:
parent
085d6934bf
commit
a51ae25ec7
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ function editPage(repoJsId) {
|
||||||
ev}
|
ev}
|
||||||
|
|
||||||
window.addEventListener("keyup", (e)=> {
|
window.addEventListener("keyup", (e)=> {
|
||||||
if (e.key == "e") {
|
if (e.key == "e" && location.protocol == "file:") {
|
||||||
editPage(sandpointsPageId)
|
editPage(sandpointsPageId)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue