diff options
-rw-r--r-- | beamer/viewer/viewer.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/beamer/viewer/viewer.js b/beamer/viewer/viewer.js index a10e6de..fa8d04e 100644 --- a/beamer/viewer/viewer.js +++ b/beamer/viewer/viewer.js | |||
@@ -103,11 +103,11 @@ class Viewer { | |||
103 | } | 103 | } |
104 | 104 | ||
105 | _hash_params() { | 105 | _hash_params() { |
106 | const queryDict = {}; | 106 | return Object.fromEntries( |
107 | location.hash.slice(1).split("&").forEach(item => { | 107 | location.hash |
108 | const pair = item.split("="); | 108 | .slice(1) // skip # |
109 | queryDict[pair[0]] = pair[1]; | 109 | .split("&") |
110 | }); | 110 | .map(item => item.split("=")) |
111 | return queryDict; | 111 | ); |
112 | } | 112 | } |
113 | } | 113 | } |