fix: 兼容空的订阅链接

This commit is contained in:
xream
2024-06-09 01:42:40 +08:00
parent 1ecac9da92
commit bf642ce0e6
6 changed files with 19 additions and 16 deletions

View File

@@ -83,7 +83,7 @@ async function processFn(proxies, operators = [], targetPlatform, source) {
const { mode, content } = item.args;
if (mode === 'link') {
let noCache;
let url = content;
let url = content || '';
if (url.endsWith('#noCache')) {
url = url.replace(/#noCache$/, '');
noCache = true;