diff options
author | Christoph (Sheogorath) Kern | 2019-04-19 21:46:08 +0200 |
---|---|---|
committer | GitHub | 2019-04-19 21:46:08 +0200 |
commit | 81904b671736165a5530d15d8f565006b401ca62 (patch) | |
tree | afa4597babc6226a732ca83bb5e0fcfc28fcaf6b /public/js/history.js | |
parent | a22c1a9d657cb41068aa5023e63f6251ac16a5c5 (diff) | |
parent | c0e75b8606267d50617807e251953ecc87b0a4e6 (diff) |
Merge pull request #51 from SISheogorath/fix/wurl
Replace js-url with wurl
Diffstat (limited to '')
-rw-r--r-- | public/js/history.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/public/js/history.js b/public/js/history.js index 6007bef4..27b8cd28 100644 --- a/public/js/history.js +++ b/public/js/history.js @@ -4,6 +4,7 @@ import store from 'store' import S from 'string' import LZString from 'lz-string' +import url from 'wurl' import { checkNoteIdValid, @@ -23,9 +24,9 @@ window.migrateHistoryFromTempCallback = null migrateHistoryFromTemp() function migrateHistoryFromTemp () { - if (window.url('#tempid')) { + if (url('#tempid')) { $.get(`${serverurl}/temp`, { - tempid: window.url('#tempid') + tempid: url('#tempid') }) .done(data => { if (data && data.temp) { |