Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit b58c489

Browse files
author
Alan Shaw
committed
fix: oops, removed more code than I should have
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
1 parent 62529c3 commit b58c489

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/querystring.browser.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
exports.objectToQuery = obj => {
66
if (!obj) return ''
77

8-
let qs = Object.entries(obj).forEach(([key, value]) => {
8+
let qs = new URLSearchParams()
9+
10+
Object.entries(obj).forEach(([key, value]) => {
911
if (value != null) {
1012
if (Array.isArray(value)) {
1113
value.forEach(v => qs.append(key, v))

0 commit comments

Comments
 (0)