File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1024
1024
if ( ! self . _canSave ) {
1025
1025
return ;
1026
1026
}
1027
- self . save ( true , true ) ;
1027
+ self . save ( true ) ;
1028
1028
} , 100 ) ;
1029
1029
1030
1030
_syncTextarea = function ( ) {
1057
1057
// manually save draft after import so there is no delay between the
1058
1058
// import and exporting in _syncTextarea. Without this, _syncTextarea
1059
1059
// will pull the saved data from localStorage which will be <=100ms old.
1060
- self . save ( true , true ) ;
1060
+ self . save ( true ) ;
1061
1061
}
1062
1062
1063
1063
// Update the textarea on load and pull from drafts
1194
1194
}
1195
1195
1196
1196
// Save a preview draft since it might not be saved to the real file yet
1197
- self . save ( true , true ) ;
1197
+ self . save ( true ) ;
1198
1198
1199
1199
// Add the generated draft HTML into the previewer
1200
1200
self . previewer . innerHTML = self . exportFile ( null , 'html' , true ) ;
1396
1396
// Emit a private update event so it can't get accidentally removed
1397
1397
self . emit ( '__update' ) ;
1398
1398
}
1399
- if ( _isAuto ) {
1399
+
1400
+ if ( _isAuto || _isPreviewDraft ) {
1400
1401
this . emit ( 'autosave' ) ;
1401
1402
}
1402
1403
else {
You can’t perform that action at this time.
0 commit comments