From 7a36045383f672fe1692ed98098b8f02cbdbe29d Mon Sep 17 00:00:00 2001 From: remittor Date: Thu, 13 Feb 2025 08:48:47 +0300 Subject: [PATCH] luci: Fix initialization L.sysFeatures --- .../htdocs/luci-static/resources/view/zapret/service.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/service.js b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/service.js index b5abafa..3d69b74 100644 --- a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/service.js +++ b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/service.js @@ -254,7 +254,12 @@ return view.extend({ }, load: function() { - return this.getAppStatus(); + var _this = this; + return Promise.all([ + L.resolveDefault(fs.stat('/bin/cat'), null), + ]).then(function(data) { + return _this.getAppStatus(); + }); }, render: function(status_array) {