function localstorage() {
	try {
		// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
		// The Browser also has localStorage in the global context.
		return localStorage;
	} catch (error) {
		// Swallow
		// XXX (@Qix-) should we be logging these?
	}
}
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