diff options
author | Literallie | 2017-11-02 17:57:44 +0100 |
---|---|---|
committer | Literallie | 2017-11-02 17:57:44 +0100 |
commit | 3a752fde5117e800d65e26cbe7b15d65eb5b491e (patch) | |
tree | b9ac4041f6d41d70a8fb46dec7a99a353646fe7d /public/js/history.js | |
parent | 567f26f5b9a5ffa0c28fba789ad502c54c4035a7 (diff) |
Revert "Load js-url lib using legacy-loader"
Didn't work in Firefox for some reason.
`[Script Loader] ReferenceError: module is not defined`
This reverts commit 5b83deb043296c23ff912a2472703c1f7faddb4b.
Diffstat (limited to '')
-rw-r--r-- | public/js/history.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/public/js/history.js b/public/js/history.js index da82fd04..e14b80d8 100644 --- a/public/js/history.js +++ b/public/js/history.js @@ -12,16 +12,14 @@ import { urlpath } from './lib/config' -var jsUrl = require('js-url') - window.migrateHistoryFromTempCallback = null migrateHistoryFromTemp() function migrateHistoryFromTemp () { - if (jsUrl('#tempid')) { + if (window.url('#tempid')) { $.get(`${serverurl}/temp`, { - tempid: jsUrl('#tempid') + tempid: window.url('#tempid') }) .done(data => { if (data && data.temp) { |