Skip to content

Commit

Permalink
Update popup.js (#1131)
Browse files Browse the repository at this point in the history
The separator used in docs title has been updated from '-' to '|'
  • Loading branch information
wyw authored Mar 26, 2024
1 parent 835a93c commit a4fa38e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functional-samples/tutorial.tabs-manager/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const elements = new Set();
for (const tab of tabs) {
const element = template.content.firstElementChild.cloneNode(true);

const title = tab.title.split('-')[0].trim();
const title = tab.title.split('|')[0].trim();
const pathname = new URL(tab.url).pathname.slice('/docs'.length);

element.querySelector('.title').textContent = title;
Expand Down

0 comments on commit a4fa38e

Please sign in to comment.