File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 11# Unreleased changes
22
3+ * [ #2010 ] ( https://github.com/mozilla/glean.js/pull/2010 ) : Remove faulty check for sessionStorage to prevent uncaught error.
4+
35[ Full changelog] ( https://github.com/mozilla/glean.js/compare/v5.0.5...main )
46
57* [ #2011 ] ( https://github.com/mozilla/glean.js/pull/2011 ) : Bug 1987158 - Capture page ` url ` /` referrer ` /` title ` with ` recordElementClick() ` .
Original file line number Diff line number Diff line change @@ -194,14 +194,6 @@ namespace Glean {
194194 * Fetch debug options from SessionStorage and set the Glean preInit debug options.
195195 */
196196 function setDebugOptionsFromSessionStorage ( ) {
197- // If we cannot access browser APIs, we do nothing.
198- if (
199- typeof window === "undefined" ||
200- typeof window . sessionStorage === "undefined"
201- ) {
202- return ;
203- }
204-
205197 const logPings = getDebugOptionFromSessionStorage ( DebugOption . LogPings ) ;
206198 if ( logPings ) {
207199 preInitLogPings = extractBooleanFromString ( logPings ) ;
You can’t perform that action at this time.
0 commit comments