fix: save new rule with hostname
This commit is contained in:
@@ -84,7 +84,7 @@ export default function Popup({ setShowPopup, translator: tran }) {
|
|||||||
const tab = await getTabInfo();
|
const tab = await getTabInfo();
|
||||||
href = tab.url;
|
href = tab.url;
|
||||||
}
|
}
|
||||||
const newRule = { ...rule, pattern: href };
|
const newRule = { ...rule, pattern: href.split("/")[2] };
|
||||||
if (isExt && tran) {
|
if (isExt && tran) {
|
||||||
sendBgMsg(MSG_SAVE_RULE, newRule);
|
sendBgMsg(MSG_SAVE_RULE, newRule);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user