mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
prettier --write
This commit is contained in:
parent
450528ff00
commit
8a0be3212d
164 changed files with 7053 additions and 9008 deletions
|
|
@ -1,10 +1,10 @@
|
|||
|
||||
import _ from '_';
|
||||
import {CookieDriver} from 'Common/ClientStorageDriver/Cookie';
|
||||
import {LocalStorageDriver} from 'Common/ClientStorageDriver/LocalStorage';
|
||||
import { CookieDriver } from 'Common/ClientStorageDriver/Cookie';
|
||||
import { LocalStorageDriver } from 'Common/ClientStorageDriver/LocalStorage';
|
||||
|
||||
const SupportedStorageDriver = _.find(
|
||||
[LocalStorageDriver, CookieDriver], (StorageDriver) => StorageDriver && StorageDriver.supported()
|
||||
[LocalStorageDriver, CookieDriver],
|
||||
(StorageDriver) => StorageDriver && StorageDriver.supported()
|
||||
);
|
||||
|
||||
const driver = SupportedStorageDriver ? new SupportedStorageDriver() : null;
|
||||
|
|
@ -14,8 +14,7 @@ const driver = SupportedStorageDriver ? new SupportedStorageDriver() : null;
|
|||
* @param {*} data
|
||||
* @returns {boolean}
|
||||
*/
|
||||
export function set(key, data)
|
||||
{
|
||||
export function set(key, data) {
|
||||
return driver ? driver.set('p' + key, data) : false;
|
||||
}
|
||||
|
||||
|
|
@ -23,7 +22,6 @@ export function set(key, data)
|
|||
* @param {number} key
|
||||
* @returns {*}
|
||||
*/
|
||||
export function get(key)
|
||||
{
|
||||
export function get(key) {
|
||||
return driver ? driver.get('p' + key) : null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue