Skip to content

Commit a94f86d

Browse files
committed
* add check for missing actiontracker
1 parent 11829d5 commit a94f86d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins-client/ext.save/save.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ module.exports = ext.register("ext/save/save", {
9595
if (node.getAttribute("deleted"))
9696
return;
9797

98-
if (node && (at.undo_ptr && at.$undostack[at.$undostack.length-1] !== at.undo_ptr
98+
if (node && (at && at.undo_ptr && at.$undostack[at.$undostack.length-1] !== at.undo_ptr
9999
|| !at.undo_ptr && node.getAttribute("changed") == 1)
100100
&& (!node.getAttribute("newfile") || e.page.$doc.getValue())) {
101101
ext.initExtension(_self);

0 commit comments

Comments
 (0)