1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 13:03:18 +00:00
musix-oss/node_modules/snekfetch/src/qs_mock.js
MatteZ02 5eb0264906 fix
2019-05-30 12:06:47 +03:00

10 lines
237 B
JavaScript

exports = {
parse: (str) => {
const parsed = {};
for (const [k, v] of new Window.URLSearchParams(str).entries())
parsed[k] = v;
return parsed;
},
stringify: (obj) => new window.URLSearchParams(obj).toString(),
};