MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / parseHashParameters

Function parseHashParameters

codebase/sources/dhtmlxscheduler.es.js:21094–21109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21092}
21093function url(scheduler2) {
21094 function parseHashParameters() {
21095 const parameters = /* @__PURE__ */ Object.create(null);
21096 const raw = (document.location.hash || "").replace("#", "");
21097 if (!raw) {
21098 return parameters;
21099 }
21100 const pairs = raw.split(",");
21101 const forbiddenKeys = ["__proto__", "constructor", "prototype"];
21102 for (let i = 0; i < pairs.length; i++) {
21103 const parts = pairs[i].split("=");
21104 if (parts.length === 2 && !forbiddenKeys.includes(parts[0])) {
21105 parameters[parts[0]] = parts[1];
21106 }
21107 }
21108 return parameters;
21109 }
21110 scheduler2._get_url_nav = function() {
21111 return parseHashParameters();
21112 };

Callers 1

urlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected