mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-30 10:10:13 +02:00
contentwraps: remove unused code
This commit is contained in:
@@ -111,11 +111,7 @@ export default class ContentWrap extends Component {
|
||||
// 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).
|
||||
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 (this.prefs.autoPreview !== false) {
|
||||
this.setPreviewContent();
|
||||
}
|
||||
this.setPreviewContent();
|
||||
|
||||
// Track when people actually are working.
|
||||
trackEvent.previewCount = (trackEvent.previewCount || 0) + 1;
|
||||
|
Reference in New Issue
Block a user