MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / loadQuery

Function loadQuery

src/common/string.js:96–104  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

94}
95
96export function loadQuery(string) {
97 const res = {};
98 if (string) {
99 new URLSearchParams(string).forEach((val, key) => {
100 res[key] = val;
101 });
102 }
103 return res;
104}
105
106export function dumpQuery(dict) {
107 return `${new URLSearchParams(dict)}`;

Callers 5

index.test.jsFile · 0.90
matchAuthFunction · 0.90
matchAuthFunction · 0.90
matchAuthFunction · 0.90
updateRouteFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected