mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Uploads were broken in old Safari (#15391)
Blob.prototype.arrayBuffer is Safari 14 onwards, so we can check to see if this exists and just skip the checksumming if not.
This commit is contained in:
committed by
GitHub
parent
abb57c350d
commit
435562cc70
@@ -24,6 +24,12 @@ export default class UppyChecksum extends UploadPreProcessorPlugin {
|
|||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (!Blob.prototype.arrayBuffer) {
|
||||||
|
this._consoleWarn(
|
||||||
|
"The required File API is unavailable in this browser."
|
||||||
|
);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (!this._hasCryptoCipher()) {
|
if (!this._hasCryptoCipher()) {
|
||||||
this._consoleWarn(
|
this._consoleWarn(
|
||||||
"The required cipher suite is unavailable in this browser."
|
"The required cipher suite is unavailable in this browser."
|
||||||
|
|||||||
Reference in New Issue
Block a user