From daaac972fe36b99cad1fc856c1fd55542e21ea3c Mon Sep 17 00:00:00 2001 From: Jeremy Schomery Date: Fri, 19 May 2017 11:53:04 +0430 Subject: [PATCH] fixes https://github.com/schomery/stylish-chrome/issues/52#issuecomment-302394702 --- messaging.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/messaging.js b/messaging.js index 5c95ad33..063f4a2a 100644 --- a/messaging.js +++ b/messaging.js @@ -21,11 +21,15 @@ const URLS = { // CWS cannot be scripted in chromium, see ChromeExtensionsClient::IsScriptableURL // https://cs.chromium.org/chromium/src/chrome/common/extensions/chrome_extensions_client.cc - chromeWebStore: FIREFOX ? 'N/A' : 'https://chrome.google.com/webstore/', + chromeWebStore: FIREFOX ? 'https://addons.mozilla.org/' : ( + OPERA ? 'https://addons.opera.com/' : 'https://chrome.google.com/webstore/' + ), supported: new RegExp( '^(file|ftps?|http)://|' + - `^https://${FIREFOX ? '' : '(?!chrome\\.google\\.com/webstore)'}|` + + `^https://${FIREFOX ? '(?!addons\\.mozilla\\.org)' : ( + OPERA ? '(?!addons\\.opera\\.com)' : '(?!chrome\\.google\\.com/webstore)' + )}|` + '^' + chrome.runtime.getURL('')), };