mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 22:50:53 +03:00
fixed capabilities.account when localStorage is disabled
This commit is contained in:
@@ -62,9 +62,15 @@ export default async function capabilities() {
|
||||
const crypto = await checkCrypto();
|
||||
const nativeStreams = checkStreams();
|
||||
const polyStreams = nativeStreams ? false : polyfillStreams();
|
||||
let account = false;
|
||||
try {
|
||||
account = !!localStorage;
|
||||
} catch (e) {
|
||||
// nevermind
|
||||
}
|
||||
|
||||
return {
|
||||
account: typeof localStorage !== 'undefined',
|
||||
account,
|
||||
crypto,
|
||||
streamUpload: nativeStreams || polyStreams,
|
||||
streamDownload:
|
||||
|
||||
Reference in New Issue
Block a user