Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: chrome/ext/popup.js

Issue 29374674: Issue 4864 - Start using ESLint for adblockpluschrome (Closed)
Patch Set: Add arrow-parens rule to match existing convention Created March 7, 2017, 10:48 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/ext/common.js ('k') | composer.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 "use strict"; 1 "use strict";
2 2
3 let ext;
4
3 { 5 {
4 const backgroundPage = chrome.extension.getBackgroundPage(); 6 const backgroundPage = chrome.extension.getBackgroundPage();
5 var ext = Object.create(backgroundPage.ext); 7 ext = Object.create(backgroundPage.ext);
6 8
7 ext.closePopup = () => 9 ext.closePopup = () =>
8 { 10 {
9 window.close(); 11 window.close();
10 }; 12 };
11 13
12 // We have to override ext.backgroundPage, because in order 14 // We have to override ext.backgroundPage, because in order
13 // to send messages the local "chrome" namespace must be used. 15 // to send messages the local "chrome" namespace must be used.
14 ext.backgroundPage = { 16 ext.backgroundPage = {
15 sendMessage: chrome.runtime.sendMessage, 17 sendMessage: chrome.runtime.sendMessage,
16 18
17 getWindow() 19 getWindow()
18 { 20 {
19 return backgroundPage; 21 return backgroundPage;
20 } 22 }
21 }; 23 };
22 } 24 }
OLDNEW
« no previous file with comments | « chrome/ext/common.js ('k') | composer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld