mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-08 19:33:24 +00:00
fixed leaky app.state on the server-side. fixes #928
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { browserName } from './utils';
|
||||
|
||||
async function checkCrypto() {
|
||||
try {
|
||||
const key = await crypto.subtle.generateKey(
|
||||
@@ -76,10 +78,7 @@ export default async function capabilities() {
|
||||
streamDownload:
|
||||
nativeStreams &&
|
||||
'serviceWorker' in navigator &&
|
||||
!(
|
||||
/safari/i.test(navigator.userAgent) &&
|
||||
!/chrome/i.test(navigator.userAgent)
|
||||
),
|
||||
browserName() !== 'safari',
|
||||
multifile: nativeStreams || polyStreams
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user