fixup eaed0de4: don't enable livepreview for unsaved code
This commit is contained in:
parent
100f7716fd
commit
0f8bca03b8
|
@ -34,7 +34,7 @@ onDOMscriptReady('/codemirror.js').then(() => {
|
|||
});
|
||||
|
||||
CodeMirror.defineInitHook(cm => {
|
||||
if (prefs.get('editor.livePreview')) {
|
||||
if (prefs.get('editor.livePreview') && styleId) {
|
||||
cm.on('changes', updatePreview);
|
||||
}
|
||||
if (prefs.get('editor.autocompleteOnTyping')) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user