aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/editor.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'src/editor.mjs')
-rw-r--r--src/editor.mjs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/editor.mjs b/src/editor.mjs
index 67f0d6a..14daab4 100644
--- a/src/editor.mjs
+++ b/src/editor.mjs
@@ -34,7 +34,6 @@ const getContentFromHash = (hash) => {
34} 34}
35 35
36const initialState = getStateFromHash(window.location.hash) 36const initialState = getStateFromHash(window.location.hash)
37const queryParams = new URL(window.location).searchParams
38window.location.hash = '' 37window.location.hash = ''
39const contentFromHash = initialState.content 38const contentFromHash = initialState.content
40const lastContent = localStorage.getItem('editorContent') 39const lastContent = localStorage.getItem('editorContent')
@@ -143,11 +142,9 @@ const debounceForMap = (() => {
143 let timer = null; 142 let timer = null;
144 143
145 return function(...args) { 144 return function(...args) {
146 let context = this;
147
148 clearTimeout(timer); 145 clearTimeout(timer);
149 timer = setTimeout(() => { 146 timer = setTimeout(() => {
150 generateMaps.apply(context, args) 147 generateMaps.apply(this, args)
151 }, 1000); 148 }, 1000);
152 } 149 }
153})() 150})()