Skip to content

Commit d57e352

Browse files
authored
Merge pull request #92 from jack828/feature/pause-detection
feat: Only trigger a reload if browser sync is not paused
2 parents 693a13d + 87b4d46 commit d57e352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/BrowserSyncPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class BrowserSyncPlugin {
3737
this.isBrowserSyncRunning = true
3838
}
3939

40-
if (this.options.reload) {
40+
if (this.options.reload && this.browserSync.active) {
4141
this.browserSync.reload(this.options.injectCss && getCssOnlyEmittedAssetsNames(stats))
4242
}
4343
}

0 commit comments

Comments
 (0)