From aef2662294addc9ee58717be35695bd80b5eff27 Mon Sep 17 00:00:00 2001 From: zefie Date: Thu, 6 Oct 2022 15:38:26 -0700 Subject: [PATCH] fix local flashrom --- zefie_wtvp_minisrv/WTVFlashrom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zefie_wtvp_minisrv/WTVFlashrom.js b/zefie_wtvp_minisrv/WTVFlashrom.js index 0740ea01..b2a4311a 100644 --- a/zefie_wtvp_minisrv/WTVFlashrom.js +++ b/zefie_wtvp_minisrv/WTVFlashrom.js @@ -33,7 +33,7 @@ class WTVFlashrom { data = err.toString(); callback(data, headers); } else { - if (info_only) { + if (info_only) {w callback(self.getFlashromInfo(data, request_path)); } else { self.sendToClient(data, request_path, callback); @@ -41,7 +41,7 @@ class WTVFlashrom { } }); } catch (e) { - var errpage = wtvshared.doErrorPage(404, "The service could not find the requested ROM.") + var errpage = this.wtvshared.doErrorPage(404, "The service could not find the requested ROM.") var headers = errpage[0]; var data = errpage[1]; callback(data, headers);