mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
Fixed: Folder expand/collapse not remembered (#934)
This commit is contained in:
parent
c926642bff
commit
568a1a1cda
8 changed files with 12 additions and 12 deletions
|
|
@ -1,12 +1,12 @@
|
|||
|
||||
import {_} from 'common';
|
||||
import {Cookie} from 'Common/ClientStorageDriver/Cookie';
|
||||
import {LocalStorage} from 'Common/ClientStorageDriver/LocalStorage';
|
||||
import {CookieDriver} from 'Common/ClientStorageDriver/Cookie';
|
||||
import {LocalStorageDriver} from 'Common/ClientStorageDriver/LocalStorage';
|
||||
|
||||
class ClientStorage
|
||||
{
|
||||
constructor() {
|
||||
const SupportedStorageDriver = _.find([LocalStorage, Cookie],
|
||||
const SupportedStorageDriver = _.find([LocalStorageDriver, CookieDriver],
|
||||
(StorageDriver) => StorageDriver && StorageDriver.supported());
|
||||
this.driver = SupportedStorageDriver ? new SupportedStorageDriver() : null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue