ClientStorage getVar has new behavior

Hi Guys,

A word of warning if you upgrade from 3.5.0 to 3.5.1

The ClientStorage.getVar() has changed. In the passed if you clientStorage.getVar(‘aVarname’) without setting a default value, a blank default was assumed.

If the aVarname was not set, the error: ‘The key you requested: aVarname does not exist’ will be thrown.

I am not sure if this was the intended behavior as the hint for default still states: hint=“The default value to set. If not used, a blank is returned.”

I have not updated the ClientStorage because of this because I have too many places that actually rely on this.

Hi Guys,

O boy, I really need to learn to read my emails again before sending them :wink:

A word of warning if you upgrade from 3.5.0 to 3.5.1

The ClientStorage.getVar() has changed. In the passed if you clientStorage.getVar(‘aVarname’) without setting a default value, a blank default was assumed.

In the present version if the aVarname was not set, the error: ‘The key you requested: aVarname does not exist’ will be thrown.

I am not sure if this was the intended behavior as the hint for default still states: hint=“The default value to set. If not used, a blank is returned.”

I have not updated the ClientStorage because of this because I have too many places that actually rely on this.

Cheers,
Tom

O hell!!!

I am talking about the CookieStorage plugin guys!!! Not the ClientStorage :slight_smile: :slight_smile: :)…

Can I quickly remove my emails and start again???

Cheers,
Tom