mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 06:30:53 +03:00
try web share api
This commit is contained in:
@@ -90,6 +90,7 @@ export default async function getCapabilities() {
|
||||
} catch (e) {
|
||||
account = false;
|
||||
}
|
||||
const share = !!navigator.share;
|
||||
|
||||
return {
|
||||
account,
|
||||
@@ -98,6 +99,7 @@ export default async function getCapabilities() {
|
||||
streamUpload: nativeStreams || polyStreams,
|
||||
streamDownload:
|
||||
nativeStreams && serviceWorker && browserName() !== 'safari',
|
||||
multifile: nativeStreams || polyStreams
|
||||
multifile: nativeStreams || polyStreams,
|
||||
share
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user