We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c14d21 commit 7a5a90bCopy full SHA for 7a5a90b
1 file changed
src/browser.js
@@ -169,11 +169,8 @@ function load() {
169
function localstorage() {
170
try {
171
// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
172
- if (typeof window === 'undefined' && typeof navigationDocument !== 'undefined') {
173
- return localStorage;
174
- }
175
-
176
- return window.localStorage;
+ // The Browser also has localStorage in the global context.
+ return localStorage;
177
} catch (e) {}
178
}
179
0 commit comments