Skip to content

Commit

Permalink
fix: 侧边栏加载问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ted423 committed Feb 28, 2022
1 parent bee2af5 commit 9d3f428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class PTPContent {

let site = sites.find((item: Site) => {
let cdn = [item.url].concat(item.cdn);
return item.host == host || cdn.join("").indexOf(host) > -1;
return item.host == host || cdn.join("").indexOf(`//${host}`) > -1;
});

if (site) {
Expand Down

0 comments on commit 9d3f428

Please sign in to comment.