Skip to content

Commit 606719c

Browse files
committed
Added commented out code for debugging issues where editor says 'Block have been modified!'.
1 parent 4d797b1 commit 606719c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/editor/editor.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,15 @@ export class Editor {
190190
}
191191

192192
public isModified(): boolean {
193+
/*
194+
// This code is helpful for debugging issues where the editor says
195+
// 'Blocks have been modified!'.
196+
if (this.getModuleContent() !== this.moduleContent) {
197+
console.log('isModified will return true');
198+
console.log('this.getModuleContent() is ' + this.getModuleContent());
199+
console.log('this.moduleContent is ' + this.moduleContent);
200+
}
201+
*/
193202
return this.getModuleContent() !== this.moduleContent;
194203
}
195204

0 commit comments

Comments
 (0)