Skip to content

Commit 067a40b

Browse files
DROP THIS - test zip ram on ios
1 parent 290e6af commit 067a40b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

public/scripts/network.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,9 +1776,9 @@ class FileDigester {
17761776

17771777
processFileViaMemory() {
17781778
// Loads complete file into RAM which might lead to a page crash (Memory limit iOS Safari: ~380 MB)
1779-
if (window.iOS && this._totalSize > 250000000) {
1780-
alert('File is bigger than 250 MB and might crash the page on iOS. To be able to use a more efficient method use https and avoid private tabs as they have restricted functionality.')
1781-
}
1779+
// if (window.iOS && this._totalSize > 250000000) {
1780+
// alert('File is bigger than 250 MB and might crash the page on iOS. To be able to use a more efficient method use https and avoid private tabs as they have restricted functionality.')
1781+
// }
17821782
Logger.warn('Big file transfers might exceed the RAM of the receiver. Use a secure context (https) to prevent this.');
17831783

17841784
const file = new File(this._buffer, this._name, {

public/scripts/ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ class ReceiveFileDialog extends ReceiveDialog {
12351235
let zipName = "";
12361236
let sendAsZip = false;
12371237

1238-
const tooBigToZip = window.iOS && this._data.totalSize > 256000000;
1238+
const tooBigToZip = false; // window.iOS && this._data.totalSize > 256000000;
12391239

12401240
if (this._data.files.length > 1 && !tooBigToZip) {
12411241
Events.fire('set-progress', {

0 commit comments

Comments
 (0)