New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option to bypass the local storage #1882
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me :-)
@@ -146,6 +146,10 @@ gmf.Permalink = function($timeout, ngeoBackgroundLayerMgr, ngeoDebounce, | |||
*/ | |||
this.ngeoStateManager_ = ngeoStateManager; | |||
|
|||
if (gmfPermalinkOptions.useLocalStorage === false) { | |||
this.ngeoStateManager_.localStorage = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe use the hash { 'isAvailable': function() {return false;}}
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or even this.ngeoStateManager_.localStorage.isAvailable = ol.functions.FALSE;
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping @gberaudo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes any way is +1. Thanks for asking.
c71ea92
to
32071e8
Compare
Add a new options to gmfx.PermalinkOptions to deactivate to storage into the local storage. The desktop_alt now uses this option.
32071e8
to
b94b095
Compare
Add a new options to gmfx.PermalinkOptions to deactivate to storage into the local storage.
The desktop_alt now uses this option.