Skip to content

Commit

Permalink
Merge pull request #411 from martinmunillas/feature/replace-querystri…
Browse files Browse the repository at this point in the history
…ng-with-urlsearchparams
  • Loading branch information
glenjamin authored Aug 11, 2022
2 parents e140693 + 240cd16 commit bc7e9bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions client.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ var options = {
ansiColors: {},
};
if (__resourceQuery) {
var querystring = require('querystring');
var overrides = querystring.parse(__resourceQuery.slice(1));
var overrides = Object.fromEntries(
new URLSearchParams(__resourceQuery.slice(1))
);
setOverrides(overrides);
}

Expand Down
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"dependencies": {
"ansi-html-community": "0.0.8",
"html-entities": "^2.1.0",
"querystring": "^0.2.0",
"strip-ansi": "^6.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit bc7e9bd

Please sign in to comment.