From d6003649337c2565e04132a58b42f7a520eb5037 Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Thu, 13 Oct 2016 16:25:38 +0800 Subject: Fix history deletion --- public/js/history.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'public/js/history.js') diff --git a/public/js/history.js b/public/js/history.js index d5082dd9..8593bbcf 100644 --- a/public/js/history.js +++ b/public/js/history.js @@ -10,7 +10,7 @@ var extra = require('./extra'); var renderFilename = extra.renderFilename; var md = extra.md; -var migrateHistoryFromTempCallback = null; +window.migrateHistoryFromTempCallback = null; migrateHistoryFromTemp(); @@ -417,5 +417,6 @@ module.exports = { postHistoryToServer: postHistoryToServer, deleteServerHistory: deleteServerHistory, parseServerToHistory: parseServerToHistory, - saveStorageHistoryToServer: saveStorageHistoryToServer + saveStorageHistoryToServer: saveStorageHistoryToServer, + clearDuplicatedHistory: clearDuplicatedHistory } -- cgit v1.2.3 From ae3e1b972bb4884ebd910ceb9ced1f206ccd9007 Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Thu, 13 Oct 2016 16:41:20 +0800 Subject: Fix spellcheck * also fix spaces width --- public/js/history.js | 1 - 1 file changed, 1 deletion(-) (limited to 'public/js/history.js') diff --git a/public/js/history.js b/public/js/history.js index 8593bbcf..d924eec1 100644 --- a/public/js/history.js +++ b/public/js/history.js @@ -3,7 +3,6 @@ var store = require('store'); var common = require('./common'); var checkIfAuth = common.checkIfAuth; var urlpath = common.urlpath; -var serverurl = common.serverurl; var getLoginState = common.getLoginState; var extra = require('./extra'); -- cgit v1.2.3