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