| Index: composer.js |
| =================================================================== |
| --- a/composer.js |
| +++ b/composer.js |
| @@ -1,6 +1,6 @@ |
| /* |
| * This file is part of Adblock Plus <https://adblockplus.org/>, |
| - * Copyright (C) 2006-2016 Eyeo GmbH |
| + * Copyright (C) 2006-2017 eyeo GmbH |
| * |
| * Adblock Plus is free software: you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License version 3 as |
| @@ -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 addFilters() |
| { |
| - ext.backgroundPage.sendMessage( |
| - { |
| + ext.backgroundPage.sendMessage({ |
| type: "filters.importRaw", |
| text: document.getElementById("filters").value |
| }, |
| @@ -51,10 +52,9 @@ |
| function closeDialog(success) |
| { |
| - ext.backgroundPage.sendMessage( |
| - { |
| + ext.backgroundPage.sendMessage({ |
| type: "forward", |
| - targetPageId: targetPageId, |
| + targetPageId, |
| payload: |
| { |
| type: "composer.content.finished", |