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

Function parseHashParameters

codebase/sources/dhtmlxscheduler.js:21098–21113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

urlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected