From 6e437d2e641d08854b656ae8fa487a253565bae3 Mon Sep 17 00:00:00 2001 From: Seven Yu Date: Fri, 29 Nov 2019 16:14:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20argv=20=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=90=8D=E6=B2=A1=E6=9C=89=E7=BB=9F=E4=B8=80=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E5=8A=A0=E5=8F=82=E6=95=B0=E7=9A=84=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/options.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/assets/options.js b/assets/options.js index cd5b903..2335937 100644 --- a/assets/options.js +++ b/assets/options.js @@ -89,47 +89,47 @@ programs = { }, cmd: { bin: '', - agrv: '', + argv: '', ext: 'bat' }, powershell: { bin: 'powershell', - agrv: '-NoProfile -File', + argv: '-NoProfile -File', ext: 'ps1' }, python: { bin: 'python', - agrv: '-u', + argv: '-u', ext: 'py' }, javascript: { bin: 'node', - agrv: '', + argv: '', ext: 'js' }, ruby: { bin: 'ruby', - agrv: '', + argv: '', ext: 'rb' }, php: { bin: 'php', - agrv: '', + argv: '', ext: 'php' }, lua: { bin: 'lua', - agrv: '', + argv: '', ext: 'lua' }, perl: { bin: 'perl', - agrv: '', + argv: '', ext: 'pl' }, custom: { bin: '', - agrv: '', + argv: '', ext: '' } } @@ -307,7 +307,7 @@ $("#options").on('click', '.editBtn', function () { if (iconame != `${mode}.png`) $('#iconame').val(iconame); if (mode == 'custom') { $('#custombin').show().val(data.customOptions.bin); - $('#customarg').show().val(data.customOptions.args); + $('#customarg').show().val(data.customOptions.argv); $('#customext').show().val(data.customOptions.ext); } mode == 'applescript' && (mode = 'shell'); @@ -426,7 +426,7 @@ $("#options").on('click', '.saveBtn', function () { if (program == 'custom') { pushData.customOptions = { "bin": $('#custombin').val(), - "args": $('#customarg').val(), + "argv": $('#customarg').val(), "ext": $('#customext').val() } }