MCPcopy Create free account
hub / github.com/brookhong/Surfingkeys / parseQueryString

Function parseQueryString

src/content_scripts/common/utils.js:366–378  ·  view source on GitHub ↗
(query)

Source from the content-addressed store, hash-verified

364}
365
366function parseQueryString(query) {
367 var params = {};
368 if (query.length) {
369 var parts = query.split('&');
370 for (var i = 0, ii = parts.length; i < ii; ++i) {
371 var param = parts[i].split('=');
372 var key = param[0].toLowerCase();
373 var value = param.length > 1 ? param[1] : null;
374 params[decodeURIComponent(key)] = decodeURIComponent(value);
375 }
376 }
377 return params;
378}
379
380function reportIssue(title, description) {
381 title = encodeURIComponent(title);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected