Skip to content

Commit

Permalink
fix: rename tab (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienfontaine authored Jun 22, 2024
1 parent 5ba55c2 commit 71e0c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async function handleRenameTab(tab: chrome.tabs.Tab, title: string) {

const urlParams = new URL(tab.url);
const ruleName = 'Rule (' + urlParams.host.substring(0, 15) + ')';
const rule = _getDefaultRule(title ?? 'Default', ruleName, urlParams.href);
const rule = _getDefaultRule(ruleName, title ?? '', urlParams.href);

tabModifier.rules.push(rule);

Expand Down

0 comments on commit 71e0c16

Please sign in to comment.