Skip to content

Commit 3ba44c3

Browse files
erakisrstoenescu
authored andcommitted
Webstorage plugin (localStorage was load as sessionStorage) (quasarframework#1326)
* Storing an empty string and getting it back produce a bad behavior. 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 "". * Should not it be validator instead of validation in QTree for tickStragegy props ? * Webstorage plugin (localStorage was load as sessionStorage)
1 parent 25b99c0 commit 3ba44c3

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
@@ -130,7 +130,7 @@ export const LocalStorage = {
130130
this.__installed = true
131131

132132
if ($q.platform.has.webStorage) {
133-
const storage = getStorage('session')
133+
const storage = getStorage('local')
134134
$q.localStorage = storage
135135
extend(true, this, storage)
136136
}

0 commit comments

Comments
 (0)