in glean/src/core/glean.ts [187:210]
function setDebugOptionsFromSessionStorage() {
// If we cannot access browser APIs, we do nothing.
if (
typeof window === "undefined" ||
typeof window.sessionStorage === "undefined"
) {
return;
}
const logPings = getDebugOptionFromSessionStorage(DebugOption.LogPings);
if (logPings) {
preInitLogPings = extractBooleanFromString(logPings);
}
const debugViewTag = getDebugOptionFromSessionStorage(DebugOption.DebugTag);
if (debugViewTag) {
preInitDebugViewTag = debugViewTag;
}
const sourceTags = getDebugOptionFromSessionStorage(DebugOption.SourceTags);
if (sourceTags) {
preInitSourceTags = sourceTags.split(",");
}
}