Trim www. on adding an exception, fix #72

This commit is contained in:
ilyaigpetrov 2020-10-03 15:54:48 +00:00
parent 60db8d0752
commit 71fe983cf2

View File

@ -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();