Skip to content

Commit

Permalink
Small improvements on web.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MyHomeMyData committed Sep 30, 2024
1 parent a278374 commit f71483d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
/* jshint -W061 */
'use strict';

const http = require('http');
const url = require('url');
const fs = require('fs');
const path = require('path');

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f71483d

Please sign in to comment.