MCPcopy Create free account
hub / github.com/openspeedtest/Speed-Test / getParams

Function getParams

assets/js/app-2.5.4.js:598–609  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

596 Get.addEvt(document, "keypress", hiEnter);
597 var addEvent = true;
598 var getParams = function(url) {
599 var params = {};
600 var parser = document.createElement("a");
601 parser.href = url;
602 var query = parser.search.substring(1);
603 var vars = query.split("&");
604 for (var i = 0; i < vars.length; i++) {
605 var pair = vars[i].split("=");
606 params[pair[0]] = decodeURIComponent(pair[1]);
607 }
608 return params;
609 };
610 var getCommand = getParams(window.location.href.toLowerCase());
611 if (setPingSamples) {
612 if (typeof getCommand.ping === "string" || typeof getCommand.p === "string") {

Callers 1

openSpeedtestEngineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected