diff options
Diffstat (limited to 'src/editor.mjs')
-rw-r--r-- | src/editor.mjs | 5 |
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 | ||
36 | const initialState = getStateFromHash(window.location.hash) | 36 | const initialState = getStateFromHash(window.location.hash) |
37 | const queryParams = new URL(window.location).searchParams | ||
38 | window.location.hash = '' | 37 | window.location.hash = '' |
39 | const contentFromHash = initialState.content | 38 | const contentFromHash = initialState.content |
40 | const lastContent = localStorage.getItem('editorContent') | 39 | const 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 | })() |