mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-27 20:03:45 +03:00
Trim www. on adding an exception, fix #72
This commit is contained in:
parent
60db8d0752
commit
71fe983cf2
|
@ -79,7 +79,7 @@ export default function getExcEditor(theState) {
|
||||||
props.currentTab &&
|
props.currentTab &&
|
||||||
props.currentTab.url &&
|
props.currentTab.url &&
|
||||||
!props.currentTab.url.startsWith('chrome')
|
!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();
|
const pacMods = props.apis.pacKitchen.getPacMods();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user