Index: chrome/ext/popup.js |
=================================================================== |
--- a/chrome/ext/popup.js |
+++ b/chrome/ext/popup.js |
@@ -1,6 +1,12 @@ |
(function() |
{ |
var backgroundPage = chrome.extension.getBackgroundPage(); |
- window.ext = backgroundPage.ext; |
+ window.ext = { |
+ __proto__: backgroundPage.ext, |
+ closePopup: function() |
+ { |
+ window.close(); |
+ } |
+ }; |
window.TabMap = backgroundPage.TabMap; |
})(); |