Skip to content

Commit 5df9233

Browse files
committed
storage -> localHistoryPlugin
1 parent c447131 commit 5df9233

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎example.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<script src="plugins/embed/embed.js"></script>
5252
<link rel="stylesheet" href="plugins/embed/embed.css">
5353

54-
<script src="plugins/localstorage/localstorage.js"></script>
54+
<script src="plugins/localHistory/localHistory.js"></script>
5555

5656
<script>
5757
codex.editor.start({
@@ -190,8 +190,8 @@
190190
},
191191
storage: {
192192
type: 'storage',
193-
prepare: storage.prepare,
194-
destroy: storage.destroy
193+
prepare: localHistoryPlugin.prepare,
194+
destroy: localHistoryPlugin.destroy
195195
},
196196
},
197197
data : {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Saves editor data to browser local storage.
55
* And uploads data from local storage if there is newer version
66
*/
7-
var storage = function () {
7+
var localHistoryPlugin = function () {
88

99
var editor = codex.editor,
1010
CURRENT_ARTICLE_HASH = null,
@@ -211,7 +211,7 @@ var storage = function () {
211211
var destroy = function () {
212212

213213
stop();
214-
storage = null;
214+
localHistoryPlugin = null;
215215

216216
};
217217

0 commit comments

Comments
 (0)