mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-11 01:09:01 +08:00
Added duplicate alert for collection, closes #74
This commit is contained in:
parent
2b419ee8e4
commit
a981763982
@ -981,6 +981,15 @@ function service() {
|
|||||||
if (proxies.length === 0) {
|
if (proxies.length === 0) {
|
||||||
throw new Error(`组合订阅中不含有效节点!`);
|
throw new Error(`组合订阅中不含有效节点!`);
|
||||||
}
|
}
|
||||||
|
// check duplicate
|
||||||
|
const count = {};
|
||||||
|
proxies.forEach(p => {
|
||||||
|
if (count[p.name]) {
|
||||||
|
$.notify("🌍 『 𝑺𝒖𝒃-𝑺𝒕𝒐𝒓𝒆 』", "⚠️ 订阅包含重复节点!", "请仔细检测配置!", {
|
||||||
|
"media-url": "https://cdn3.iconfinder.com/data/icons/seo-outline-1/512/25_code_program_programming_develop_bug_search_developer-512.png"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
return ProxyUtils.produce(proxies, platform);
|
return ProxyUtils.produce(proxies, platform);
|
||||||
} else if (type === "rule") {
|
} else if (type === "rule") {
|
||||||
const rule = item;
|
const rule = item;
|
||||||
|
4
backend/sub-store.min.js
vendored
4
backend/sub-store.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user