HM-85. Внедрена авторизация на сайт (#44)

This commit is contained in:
Nikolay
2020-08-02 00:56:37 +03:00
committed by GitHub
parent edc493f0a2
commit 728e530d3d
12 changed files with 90 additions and 66 deletions

View File

@ -16,7 +16,7 @@ class LocalStorageAPI {
* Возвращает распарсенный объект из Local Storage по ключу из конструктора
*/
request () {
const value = this.api.getItem(this.key) || '{}';
const value = this.api.getItem(this.key) || 'null';
return JSON.parse(value);
}