Skip to content

Commit 061cde6

Browse files
committed
Update codedrop.js
1 parent 59fa3b2 commit 061cde6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

codedrop.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@ function processFile(file) {
125125

126126
cd.focus();
127127

128-
cd.history = [{ html: cd.innerHTML, pos: cd.getSelection() }];
129-
128+
cd.history.records = [{ html: cd.innerHTML, pos: cd.getSelection() }];
129+
cd.history.pos = 0;
130+
130131
changeSelectedFile('', '', file.name, encodeUnicode(event.target.result), cd.lang, [0, 0], [0, 0], false);
131132

132133
showMessage('Loaded ' + file.name + '!', 5000);

0 commit comments

Comments
 (0)