How to detect - is webstorage enabled in client web browser?
up vote
-2
down vote
favorite
I've Angular app which needs webstorage (in my case sessionstorage) to work correct. I need to check users web browser settings to avoid launch app when it's disabled. How to check it using the best method?
I found this site:
https://mathiasbynens.be/notes/localstorage-pattern
but release data is really old, so I would ask, is it still good way.
javascript angular html5
add a comment |
up vote
-2
down vote
favorite
I've Angular app which needs webstorage (in my case sessionstorage) to work correct. I need to check users web browser settings to avoid launch app when it's disabled. How to check it using the best method?
I found this site:
https://mathiasbynens.be/notes/localstorage-pattern
but release data is really old, so I would ask, is it still good way.
javascript angular html5
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
I've Angular app which needs webstorage (in my case sessionstorage) to work correct. I need to check users web browser settings to avoid launch app when it's disabled. How to check it using the best method?
I found this site:
https://mathiasbynens.be/notes/localstorage-pattern
but release data is really old, so I would ask, is it still good way.
javascript angular html5
I've Angular app which needs webstorage (in my case sessionstorage) to work correct. I need to check users web browser settings to avoid launch app when it's disabled. How to check it using the best method?
I found this site:
https://mathiasbynens.be/notes/localstorage-pattern
but release data is really old, so I would ask, is it still good way.
javascript angular html5
javascript angular html5
asked Nov 10 at 20:55
3D_fun
858
858
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
You can check it simply like this :
if (window.localStorage){
// the user's browser supports localStorage
}
Simple solution are the best :). Thank You!
– 3D_fun
Nov 10 at 21:12
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
You can check it simply like this :
if (window.localStorage){
// the user's browser supports localStorage
}
Simple solution are the best :). Thank You!
– 3D_fun
Nov 10 at 21:12
add a comment |
up vote
3
down vote
accepted
You can check it simply like this :
if (window.localStorage){
// the user's browser supports localStorage
}
Simple solution are the best :). Thank You!
– 3D_fun
Nov 10 at 21:12
add a comment |
up vote
3
down vote
accepted
up vote
3
down vote
accepted
You can check it simply like this :
if (window.localStorage){
// the user's browser supports localStorage
}
You can check it simply like this :
if (window.localStorage){
// the user's browser supports localStorage
}
answered Nov 10 at 21:00
Mohamed Ali RACHID
1,773315
1,773315
Simple solution are the best :). Thank You!
– 3D_fun
Nov 10 at 21:12
add a comment |
Simple solution are the best :). Thank You!
– 3D_fun
Nov 10 at 21:12
Simple solution are the best :). Thank You!
– 3D_fun
Nov 10 at 21:12
Simple solution are the best :). Thank You!
– 3D_fun
Nov 10 at 21:12
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243328%2fhow-to-detect-is-webstorage-enabled-in-client-web-browser%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown