1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-14 18:46:19 +02:00
This commit is contained in:
Kushagra Gour
2017-05-01 01:15:29 +05:30
parent 5644b0c9c0
commit afa22b8309

View File

@ -912,6 +912,8 @@ runBtn, searchInput
// This is done so that multiple simultaneous setValue don't trigger too many preview refreshes // This is done so that multiple simultaneous setValue don't trigger too many preview refreshes
// and in turn too many file writes on a single file (eg. preview.html). // and in turn too many file writes on a single file (eg. preview.html).
if (change.origin !== 'setValue') { if (change.origin !== 'setValue') {
// Specifically checking for false so that the condition doesn't get true even
// on absent key - possible when the setting key hasn't been fetched yet.
if (prefs.autoPreview !== false) { if (prefs.autoPreview !== false) {
scope.setPreviewContent(); scope.setPreviewContent();
} }