mirror of
https://github.com/fmhy/FMHY-SafeGuard.git
synced 2026-03-11 08:55:40 +00:00
Merge e0471d3c90 into d45dae4388
This commit is contained in:
commit
0fd916f723
1 changed files with 2 additions and 2 deletions
|
|
@ -532,7 +532,7 @@ browserAPI.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
|||
}
|
||||
|
||||
// Special handling for repository sites
|
||||
const isRepoSite = ["github.com", "gitlab.com", "sourceforge.net"].some(
|
||||
const isRepoSite = ["github.com", "gitlab.com", "sourceforge.net", "codeberg.org"].some(
|
||||
(domain) =>
|
||||
urlObj.hostname === domain || urlObj.hostname.endsWith("." + domain)
|
||||
);
|
||||
|
|
@ -641,7 +641,7 @@ function getStatusFromLists(url) {
|
|||
// Special handling for repository hosting sites
|
||||
const urlObj = new URL(url);
|
||||
const domain = urlObj.hostname;
|
||||
const isRepoSite = ["github.com", "gitlab.com", "sourceforge.net"].some(
|
||||
const isRepoSite = ["github.com", "gitlab.com", "sourceforge.net", "codeberg.org"].some(
|
||||
(domain) =>
|
||||
urlObj.hostname === domain || urlObj.hostname.endsWith("." + domain)
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue