mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-11 04:09:00 +08:00
chore: 脚本操作时不使用空值合并运算符
This commit is contained in:
parent
b3de7a4bc5
commit
a12adf5255
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.187",
|
"version": "2.14.188",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -324,7 +324,7 @@ function ScriptOperator(script, targetPlatform, $arguments, source) {
|
|||||||
const operator = createDynamicFunction(
|
const operator = createDynamicFunction(
|
||||||
'operator',
|
'operator',
|
||||||
`async function operator(input = []) {
|
`async function operator(input = []) {
|
||||||
if (input?.$files || input?.$content) {
|
if (input && (input.$files || input.$content)) {
|
||||||
let { $content, $files } = input
|
let { $content, $files } = input
|
||||||
${script}
|
${script}
|
||||||
return { $content, $files }
|
return { $content, $files }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user