Webclient: Stringify config object values
This commit is contained in:
parent
b263497eac
commit
17a73d9d93
1 changed files with 3 additions and 0 deletions
|
|
@ -136,6 +136,9 @@ export class ConfigManager {
|
|||
* Item to be stored.
|
||||
*/
|
||||
set(key: string, value: any) {
|
||||
if (typeof(value) === "object") {
|
||||
value = JSON.stringify(value);
|
||||
}
|
||||
this.storage.setItem(key, value);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue