Fix number parsing in localStorage
This commit is contained in:
parent
c422c2df4d
commit
48582cff3f
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ ls.factory("$store", ["$parse", function($parse){
|
||||||
if (val === 'false'){
|
if (val === 'false'){
|
||||||
val = false;
|
val = false;
|
||||||
}
|
}
|
||||||
if (parseFloat(val) === val && !angular.isObject(val)) {
|
if (parseFloat(val) == val && !angular.isObject(val)) {
|
||||||
val = parseFloat(val);
|
val = parseFloat(val);
|
||||||
}
|
}
|
||||||
} catch(e){
|
} catch(e){
|
||||||
|
|
Loading…
Reference in a new issue