chore: 脚本操作时不使用空值合并运算符

This commit is contained in:
xream 2024-01-20 22:14:23 +08:00
parent b3de7a4bc5
commit a12adf5255
No known key found for this signature in database
GPG Key ID: 1D2C5225471789F9
2 changed files with 2 additions and 2 deletions

View File

@ -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": {

View File

@ -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 }