Skip to content

Commit 5ec6dd9

Browse files
erakisrstoenescu
authored andcommitted
Storing an empty string and getting it back produce a bad behavior. (quasarframework#1198)
There was a test for considering the value only if it contains at least 10 chars, but 9 is the correct number. As each key plus separator '"__q_strn|".length' contains 9 chars not 10. So getting a value from "__q_strn|" was returning "__q_strn|" instead of "".
1 parent 5e647f7 commit 5ec6dd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/web-storage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function decode (value) {
3131
let type, length, source
3232

3333
length = value.length
34-
if (length < 10) {
34+
if (length < 9) {
3535
// then it wasn't encoded by us
3636
return value
3737
}

0 commit comments

Comments
 (0)