The function getWStorage()will crash if localstorage is disabled in browser. In Chrome, you can do it by setting "Block sites from setting any data" to true in your Content settings.
The fix will move this function inside try-catch block so that the storage will return as unavailable if user has disabled localstorage in browser's settings.
The function
getWStorage()
will crash if localstorage is disabled in browser. In Chrome, you can do it by setting "Block sites from setting any data" to true in your Content settings.The fix will move this function inside try-catch block so that the storage will return as unavailable if user has disabled localstorage in browser's settings.