MCPcopy
hub / github.com/google/tamperchrome / parseQuery

Function parseQuery

v1/app/background.js:51–61  ·  view source on GitHub ↗
(qstr)

Source from the content-addressed store, hash-verified

49};
50
51function parseQuery(qstr)
52{
53 var query = {};
54 var a = qstr.split('&');
55 for (var i in a)
56 {
57 var b = a[i].split('=');
58 query[decodeURIComponent(b[0])] = decodeURIComponent(b[1]);
59 }
60 return query;
61}
62
63// action functions
64var sendResponse = function(socketId, value) {

Callers 1

handleRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected