Commit 823f15c6 authored by Thomas Greiner's avatar Thomas Greiner

Issue #415 - Fixed: Message was sent to wrong settings page port

parent 416774cb
......@@ -33,3 +33,8 @@ const doclinks = {
get: (link) => send("app.get", {what: "doclink", link})
};
module.exports.doclinks = doclinks;
// For now we are merely reusing the port for long-lived communications to fix
// https://gitlab.com/eyeo/adblockplus/abpui/adblockplusui/issues/415
const port = browser.runtime.connect({name: "ui"});
module.exports.port = port;
......@@ -25,8 +25,8 @@ require("./io-list-box");
require("./io-popout");
require("./io-toggle");
const {port} = require("./api");
const {$} = require("./dom");
const port = browser.runtime.connect({name: "ui"});
let subscriptionsMap = Object.create(null);
let filtersMap = Object.create(null);
......
......@@ -25,8 +25,8 @@ const IOScrollbar = require("./io-scrollbar");
const {utils, wire} = IOElement;
const {port} = require("./api");
const {$} = require("./dom");
const port = browser.runtime.connect({name: "ui"});
const prevFilterText = new WeakMap();
......
......@@ -17,11 +17,12 @@
"use strict";
const {port} = require("./api");
const reportData = new DOMParser().parseFromString("<report></report>",
"text/xml");
let dataGatheringTabId = null;
let isMinimumTimeMet = false;
const port = browser.runtime.connect({name: "ui"});
port.onMessage.addListener((message) =>
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment