Index: chrome/ext/background.js |
=================================================================== |
--- a/chrome/ext/background.js |
+++ b/chrome/ext/background.js |
@@ -594,10 +594,16 @@ |
ext.windows = { |
create: function(createData, callback) |
{ |
- chrome.windows.create(createData, function(createdWindow) |
+ if (typeof chrome.windows.create === "function"){ |
Sebastian Noack
2016/03/14 08:28:17
Nit; it should be sufficient to check for existenc
|
+ chrome.windows.create(createData, function(createdWindow) |
+ { |
+ afterTabLoaded(callback)(createdWindow.tabs[0]); |
+ }); |
+ } |
+ else |
{ |
- afterTabLoaded(callback)(createdWindow.tabs[0]); |
- }); |
+ ext.pages.open(createData.url, callback); |
+ } |
} |
}; |
})(); |