 Issue 29371763:
  Issue 4795 - Use modern JavaScript syntax  (Closed)
    
  
    Issue 29371763:
  Issue 4795 - Use modern JavaScript syntax  (Closed) 
  | Index: chrome/ext/common.js | 
| diff --git a/chrome/ext/common.js b/chrome/ext/common.js | 
| index 2e5c776dccb493894383117b12bebafc411587b5..e6efce2f466f776f42496d610a8f8034dbf9b2ba 100644 | 
| --- a/chrome/ext/common.js | 
| +++ b/chrome/ext/common.js | 
| @@ -15,7 +15,6 @@ | 
| * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 
| */ | 
| -(function() | 
| 
Sebastian Noack
2017/01/13 12:30:50
As mentioned on the other review, unless you use s
 
kzar
2017/01/16 04:09:11
Done.
 | 
| { | 
| /* Message passing */ | 
| @@ -26,10 +25,7 @@ | 
| ext.backgroundPage = { | 
| sendMessage: chrome.runtime.sendMessage, | 
| - getWindow: function() | 
| - { | 
| - return chrome.extension.getBackgroundPage(); | 
| - } | 
| + getWindow: () => chrome.extension.getBackgroundPage() | 
| 
Sebastian Noack
2017/01/13 12:30:50
I think for method definitions, the method definit
 
kzar
2017/01/16 04:09:11
According to this page[1] they are. Also I just te
 | 
| }; | 
| @@ -37,4 +33,4 @@ | 
| ext.getURL = chrome.extension.getURL; | 
| ext.i18n = chrome.i18n; | 
| -})(); | 
| +} |