* Localstorage attempts to return the localstorage. * * This is necessary because safari throws * when a user disables cookies/localstorage * and you attempt to access it. * * @return {LocalStorage} * @api private
()
| 245 | */ |
| 246 | |
| 247 | function localstorage() { |
| 248 | try { |
| 249 | // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context |
| 250 | // The Browser also has localStorage in the global context. |
| 251 | return localStorage; |
| 252 | } catch (error) { |
| 253 | // Swallow |
| 254 | // XXX (@Qix-) should we be logging these? |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | module.exports = require('./common')(exports); |
| 259 |
no outgoing calls
no test coverage detected
searching dependent graphs…