From f71483dc22656ed3c256238b9a5ddb68a03559a3 Mon Sep 17 00:00:00 2001 From: MyHomeMyData Date: Mon, 30 Sep 2024 11:43:16 +0200 Subject: [PATCH] Small improvements on web.js --- lib/web.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/web.js b/lib/web.js index 46d7ee3..ef3f252 100644 --- a/lib/web.js +++ b/lib/web.js @@ -4,8 +4,6 @@ /* jshint -W061 */ 'use strict'; -const http = require('http'); -const url = require('url'); const fs = require('fs'); const path = require('path'); @@ -76,7 +74,7 @@ class ExtensionFlexcharts { const query = {}; (parts[1] || '').split('&').forEach(p => { const pp = p.split('='); - query[pp[0]] = decodeURIComponent(pp[1] || ''); + if (pp[0]) query[pp[0]] = decodeURIComponent(pp[1] || ''); }); // Extrect path of file from provided URL