0 points

I have no idea why this was in the Chrome Extension.


dashboard

Sun Nov 29 2020 09:26:39 GMT+0000 (UTC)

Posted by @mishka #background.js

  chrome.declarativeContent.onPageChanged.removeRules(undefined, function () {
    chrome.declarativeContent.onPageChanged.addRules([{
      conditions: [new chrome.declarativeContent.PageStateMatcher({
        pageUrl: {},
      })
      ],
      actions: [new chrome.declarativeContent.ShowPageAction()]
    }
    ]);
  });
content_copy Copy

It was in the tutorial. Removing it doens't seem to be breaking the extension.