summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorYukai Huang2016-10-09 21:35:24 +0800
committerYukai Huang2016-10-09 21:35:24 +0800
commit8f9afa42d57b26599de935e93b8b3a14d899566c (patch)
treefa71208e9c157c790968762b8febf17e60a340b7 /public/js
parent2ccaf7119162f596fbc6ceb011cbf841575e21d5 (diff)
Fix history and edit mode change
Diffstat (limited to 'public/js')
-rw-r--r--public/js/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 7be03086..8a55037b 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -55,6 +55,7 @@ require('randomcolor');
var common = require('./common.js');
var urlpath = common.urlpath;
+var noteid = common.noteid;
var debug = common.debug;
var version = common.version;
var serverurl = common.serverurl;
@@ -89,9 +90,8 @@ var renderTitle = extra.renderTitle;
var renderFilename = extra.renderFilename;
var scrollToHash = extra.scrollToHash;
-var history = require('./history');
-var writeHistory = history.writeHistory;
-
+var historyModule = require('./history');
+var writeHistory = historyModule.writeHistory;
var renderer = require('./render');
var preventXSS = renderer.preventXSS;