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

Unified Diff: composer.js

Issue 29374674: Issue 4864 - Start using ESLint for adblockpluschrome (Closed)
Patch Set: Use .includes again Created March 31, 2017, 8:37 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/ext/popup.js ('k') | composer.postload.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: composer.js
diff --git a/composer.js b/composer.js
index 4f88d45277fc62b78a34a2d6769e5e975047cb3a..11952731b317f799e176c16d64426528416dcb0d 100644
--- a/composer.js
+++ b/composer.js
@@ -15,6 +15,8 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
+/* eslint-env jquery */
+
"use strict";
let targetPageId = null;
@@ -35,8 +37,7 @@ function onKeyDown(event)
function addFilters()
{
- ext.backgroundPage.sendMessage(
- {
+ ext.backgroundPage.sendMessage({
type: "filters.importRaw",
text: document.getElementById("filters").value
},
@@ -51,10 +52,9 @@ function addFilters()
function closeDialog(success)
{
- ext.backgroundPage.sendMessage(
- {
+ ext.backgroundPage.sendMessage({
type: "forward",
- targetPageId: targetPageId,
+ targetPageId,
payload:
{
type: "composer.content.finished",
« no previous file with comments | « chrome/ext/popup.js ('k') | composer.postload.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld