Fix history and edit mode change

This commit is contained in:
Yukai Huang 2016-10-09 21:35:24 +08:00
parent 2ccaf71191
commit 8f9afa42d5

View file

@ -55,6 +55,7 @@ require('randomcolor');
var common = require('./common.js'); var common = require('./common.js');
var urlpath = common.urlpath; var urlpath = common.urlpath;
var noteid = common.noteid;
var debug = common.debug; var debug = common.debug;
var version = common.version; var version = common.version;
var serverurl = common.serverurl; var serverurl = common.serverurl;
@ -89,9 +90,8 @@ var renderTitle = extra.renderTitle;
var renderFilename = extra.renderFilename; var renderFilename = extra.renderFilename;
var scrollToHash = extra.scrollToHash; var scrollToHash = extra.scrollToHash;
var history = require('./history'); var historyModule = require('./history');
var writeHistory = history.writeHistory; var writeHistory = historyModule.writeHistory;
var renderer = require('./render'); var renderer = require('./render');
var preventXSS = renderer.preventXSS; var preventXSS = renderer.preventXSS;