Browse files

Merge pull request #379 from fungl164/fungl164/chrome-live-osx-2

Fix OpenLiveBrowser issue with Chrome ghost window
  • Loading branch information...
2 parents ea2d08e + 4fa5a4a commit 808c31d7361862c5c5102123e48c8bdf042c7da9 @redmunds redmunds committed Nov 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 appshell/appshell_extensions_mac.mm
View
2 appshell/appshell_extensions_mac.mm
@@ -319,7 +319,7 @@ int32 OpenLiveBrowser(ExtensionString argURL, bool enableRemoteDebugging)
}
GoogleChromeWindow* chromeWindow = [[chromeApp windows] objectAtIndex:0];
- if(!chromeWindow){
+ if (!chromeWindow || [[chromeWindow tabs] count] == 0) {
// Create new LiveBrowser Window
GoogleChromeWindow* chromeWindow = [[[chromeApp classForScriptingClass:@"window"] alloc] init];
[[chromeApp windows] addObject:chromeWindow];

0 comments on commit 808c31d

Please sign in to comment.