Index: chrome/ext/popup.js |
diff --git a/chrome/ext/popup.js b/chrome/ext/popup.js |
index 40932374211505989553c15352d2e7215e7d07da..7e564e90908a098eb03338e03a184653438621f1 100644 |
--- a/chrome/ext/popup.js |
+++ b/chrome/ext/popup.js |
@@ -1,9 +1,8 @@ |
-(function() |
{ |
- var backgroundPage = chrome.extension.getBackgroundPage(); |
+ let backgroundPage = chrome.extension.getBackgroundPage(); |
window.ext = Object.create(backgroundPage.ext); |
- ext.closePopup = function() |
+ ext.closePopup = () => |
{ |
window.close(); |
}; |
@@ -13,9 +12,6 @@ |
ext.backgroundPage = { |
sendMessage: chrome.runtime.sendMessage, |
- getWindow: function() |
- { |
- return backgroundPage; |
- } |
+ getWindow: () => backgroundPage |
}; |
-})(); |
+} |