Skip to content

Commit 6bfc170

Browse files
committed
fix: add disable-renderer-backgrounding flag
Fixes #123
1 parent 5b5b4ae commit 6bfc170

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ var ChromeBrowser = function (baseBrowserDecorator, args) {
4040
'--disable-popup-blocking',
4141
'--disable-translate',
4242
'--disable-background-timer-throttling',
43+
// on macOS, disable-background-timer-throttling is not enough
44+
// and we need disable-renderer-backgrounding too
45+
// see https://github.com/karma-runner/karma-chrome-launcher/issues/123
46+
'--disable-renderer-backgrounding',
4347
'--disable-device-discovery-notifications'
4448
].concat(flags, [url])
4549
}

0 commit comments

Comments
 (0)