mirror of
https://github.com/RobinLinus/snapdrop.git
synced 2025-05-18 00:20:23 -07:00
iOS Refactor fallback hack
This commit is contained in:
parent
a74e3fad1a
commit
aa999e13c5
@ -239,11 +239,9 @@ class ReceiveDialog extends Dialog {
|
||||
|
||||
if (window.isDownloadSupported) return;
|
||||
// fallback for iOS
|
||||
$a.href = '#';
|
||||
$a.target = '_blank';
|
||||
let reader = new FileReader();
|
||||
reader.onload = e => {
|
||||
$a.onclick = e=>window.open(reader.result,'_blank');
|
||||
}
|
||||
reader.onload = e => $a.href = reader.result;
|
||||
reader.readAsDataURL(file.blob);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user