diff --git a/backend/package.json b/backend/package.json index 0ec1eb4..1f66af1 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.187", + "version": "2.14.188", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/processors/index.js b/backend/src/core/proxy-utils/processors/index.js index d8fc897..449b101 100644 --- a/backend/src/core/proxy-utils/processors/index.js +++ b/backend/src/core/proxy-utils/processors/index.js @@ -324,7 +324,7 @@ function ScriptOperator(script, targetPlatform, $arguments, source) { const operator = createDynamicFunction( 'operator', `async function operator(input = []) { - if (input?.$files || input?.$content) { + if (input && (input.$files || input.$content)) { let { $content, $files } = input ${script} return { $content, $files }