We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11829d5 commit a94f86dCopy full SHA for a94f86d
plugins-client/ext.save/save.js
@@ -95,7 +95,7 @@ module.exports = ext.register("ext/save/save", {
95
if (node.getAttribute("deleted"))
96
return;
97
98
- if (node && (at.undo_ptr && at.$undostack[at.$undostack.length-1] !== at.undo_ptr
+ if (node && (at && at.undo_ptr && at.$undostack[at.$undostack.length-1] !== at.undo_ptr
99
|| !at.undo_ptr && node.getAttribute("changed") == 1)
100
&& (!node.getAttribute("newfile") || e.page.$doc.getValue())) {
101
ext.initExtension(_self);
0 commit comments