From 9fe31af96cbbf4acd22b5477e1bd40f25fe3d28d Mon Sep 17 00:00:00 2001 From: gSpot Date: Sun, 10 Nov 2024 14:07:15 +0300 Subject: [PATCH] luci-app-ruantiblock: fixed settings.js. --- .../luci-static/resources/view/ruantiblock/settings.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/luci-app-ruantiblock/htdocs/luci-static/resources/view/ruantiblock/settings.js b/luci-app-ruantiblock/htdocs/luci-static/resources/view/ruantiblock/settings.js index ae6a893..7f141ac 100644 --- a/luci-app-ruantiblock/htdocs/luci-static/resources/view/ruantiblock/settings.js +++ b/luci-app-ruantiblock/htdocs/luci-static/resources/view/ruantiblock/settings.js @@ -95,7 +95,6 @@ return view.extend({ return Promise.all([ L.resolveDefault(fs.exec(tools.execPath, [ 'raw-status' ]), 1), L.resolveDefault(fs.list(tools.parsersDir), null), - L.resolveDefault(fs.list(tools.dnsmasqCfgDirsRoot), null), uci.load(tools.appName), ]).catch(e => { ui.addNotification(null, E('p', _('Unable to read the contents') @@ -109,10 +108,10 @@ return view.extend({ if(!data) { return; }; - this.appStatusCode = data[0].code; - let p_dir_arr = data[1]; - let curent_module = uci.get(tools.appName, 'config', 'bllist_module'); - let curent_preset = uci.get(tools.appName, 'config', 'bllist_preset'); + this.appStatusCode = data[0].code; + let p_dir_arr = data[1]; + let curent_module = uci.get(tools.appName, 'config', 'bllist_module'); + let curent_preset = uci.get(tools.appName, 'config', 'bllist_preset'); if(p_dir_arr) { p_dir_arr.forEach(e => {