From 71fe983cf22f12c0f7f5e410b5775232b0aaa15a Mon Sep 17 00:00:00 2001 From: ilyaigpetrov Date: Sat, 3 Oct 2020 15:54:48 +0000 Subject: [PATCH] Trim www. on adding an exception, fix #72 --- .../extension-common/pages/options/src/components/ExcEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/ExcEditor.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/ExcEditor.js index 12fc36c..13959fb 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/ExcEditor.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/ExcEditor.js @@ -79,7 +79,7 @@ export default function getExcEditor(theState) { props.currentTab && props.currentTab.url && !props.currentTab.url.startsWith('chrome') - ? new URL(props.currentTab.url).hostname + ? new URL(props.currentTab.url).hostname.replace(/^www\./g, '') : ''; const pacMods = props.apis.pacKitchen.getPacMods();