Index: safari/ext/common.js |
=================================================================== |
--- a/safari/ext/common.js |
+++ b/safari/ext/common.js |
@@ -212,6 +212,12 @@ |
/* API */ |
ext = { |
+ backgroundPage: { |
Thomas Greiner
2014/03/05 13:24:47
ext.backgroundPage is already defined in ext/popup
|
+ getWindow: function() |
+ { |
+ return safari.extension.globalPage.contentWindow; |
+ } |
+ }, |
getURL: function(path) |
{ |
return safari.extension.baseURI + path; |