You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Versions (please complete the following information):
NgxWebstorage: 4.0.1
Angular: 8
Describe the bug
We are getting a security error on our end which happens on your code. Unfortunately unable to know how this is reproducable.
The error message is:
SecurityError: The operation is insecure.
To Reproduce
Sorry not sure how to as this was reported by the log error on a user machine.
Expected behavior
Shouldn't be getting any errors
If applicable, add screenshots to help explain your problem.
Code where it happens
import{WebStorage}from'./interfaces/webStorage';exportconstLOCAL_STORAGE: InjectionToken<WebStorage>=newInjectionToken<WebStorage>('window_local_storage');exportfunctiongetLocalStorage(){// -----> THIS IS WHERE THE ERROR HAPPENS <----------return(typeofwindow!=='undefined') ? window.localStorage : null;}exportconstLocalStorageProvider: FactoryProvider={provide: LOCAL_STORAGE,useFactory: getLocalStorage};exportconstSESSION_STORAGE: InjectionToken<WebStorage>=newInjectionToken<WebStorage>('window_session_storage');
Desktop (please complete the following information):
OS: iOS 14.2
Browser: Mobile Safari
Version 14.0.1
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Versions (please complete the following information):
Describe the bug
We are getting a security error on our end which happens on your code. Unfortunately unable to know how this is reproducable.
The error message is:
To Reproduce
Sorry not sure how to as this was reported by the log error on a user machine.
Expected behavior
Shouldn't be getting any errors
If applicable, add screenshots to help explain your problem.
Code where it happens
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: