From a3fc0c24f447e9553d0ba30ea63d86e90dda582c Mon Sep 17 00:00:00 2001 From: asvow <88471740+asvow@users.noreply.github.com> Date: Tue, 30 Jul 2024 20:06:46 +0800 Subject: [PATCH] modify the indentation symbol --- htdocs/luci-static/resources/view/tailscale/setting.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/luci-static/resources/view/tailscale/setting.js b/htdocs/luci-static/resources/view/tailscale/setting.js index 2bcb028..5fb1987 100644 --- a/htdocs/luci-static/resources/view/tailscale/setting.js +++ b/htdocs/luci-static/resources/view/tailscale/setting.js @@ -17,9 +17,11 @@ var callServiceList = rpc.declare({ params: ['name'], expect: { '': {} } }); + function enquoteBigNumber(str) { - return str.replace(/("\w+"):\s*(\d+)/g, '$1:"$2"'); + return str.replace(/("\w+"):\s*(\d+)/g, '$1:"$2"'); } + function getStatus() { var status = {}; return Promise.resolve(callServiceList('tailscale')).then(function (res) {