diff options
author | Yukai Huang | 2016-10-08 20:02:30 +0800 |
---|---|---|
committer | Yukai Huang | 2016-10-08 20:02:30 +0800 |
commit | 963a435ae1e9248b42b4665acf106dcffa549678 (patch) | |
tree | 99446e874b353d4f373df33e14582187aaa44578 /public/js/history.js | |
parent | 0be342c44d5b6287c67922758f076e7897f6c3a8 (diff) |
Resolve dependency module requiring
* es5 style module exports
* remove script tag require
* webpack config ProvidePlugin
Note that this commit only fix JavaScript module loading runtime error.
Diffstat (limited to 'public/js/history.js')
-rw-r--r-- | public/js/history.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/public/js/history.js b/public/js/history.js index 0840580d..fbf71db7 100644 --- a/public/js/history.js +++ b/public/js/history.js @@ -1,3 +1,13 @@ +var store = require('store'); + +var common = require('./common'); +var checkIfAuth = common.checkIfAuth; +var urlpath = common.urlpath; + +var extra = require('./extra'); +var renderFilename = extra.renderFilename; +var md = extra.md; + var migrateHistoryFromTempCallback = null; migrateHistoryFromTemp(); @@ -365,4 +375,8 @@ function parseToHistory(list, notehistory, callback) { } } callback(list, notehistory); -}
\ No newline at end of file +} + +module.exports = { + writeHistory: writeHistory +} |