From a1faee8303a3552f2d05485f90a537297933f3e1 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Tue, 7 Dec 2021 14:53:11 +0100 Subject: [PATCH] Change linkTypeDetail to be written to the upper-scoped-var --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 4e35a9c..bd9398c 100644 --- a/src/main.js +++ b/src/main.js @@ -90,7 +90,7 @@ if(errorMsg){ if(!linkTypeId && data.match(/^(tcpdump: )?listening on/i)){ // Grab first data containing listen-info if proper header was found const linkType = data.match(/((?<=link-type ))([a-z].*?) \(.*?\)(?=,)/i)[0]; const linkTypeData = linkType.match(/(\S*) (.*)/i); - const linkTypeId = linkTypeData[1]; + linkTypeId = linkTypeData[1]; const linkTypeDetail = linkTypeData[2]; if(linkTypeId !== "IEEE802_11_RADIO"){