Commit 2e934806 authored by Tristan Cavelier's avatar Tristan Cavelier

fix bug when parsing storage description in newJio method

parent 9ef7961f
......@@ -26,7 +26,10 @@ var jioNamespace = (function (spec) {
if (typeof storage === 'string') {
storage = JSON.parse(storage);
} else {
storage = JSON.parse(JSON.stringify(storage));
storage = JSON.stringify(storage);
if (storage !== undefined) {
storage = JSON.parse(storage);
}
}
storage = storage || {
type: 'base'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment