Skip to content

Instantly share code, notes, and snippets.

View PenguinOfWar's full-sized avatar
🐴
[deranged neighing]

Darryl Walker PenguinOfWar

🐴
[deranged neighing]
View GitHub Profile
@hanayashiki
hanayashiki / patch-arrayBuffer.js
Created December 16, 2019 04:08
Safari 13.0.4: Blob.arrayBuffer is not a function
(function () {
File.prototype.arrayBuffer = File.prototype.arrayBuffer || myArrayBuffer;
Blob.prototype.arrayBuffer = Blob.prototype.arrayBuffer || myArrayBuffer;
function myArrayBuffer() {
// this: File or Blob
return new Promise((resolve) => {
let fr = new FileReader();
fr.onload = () => {
resolve(fr.result);
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: ObjectivePGP
Comment: https://www.objectivepgp.com
Charset: UTF-8
xsFNBGBKQJcBEACpcqHL+fJ5qnTDabBuRw9v391lyhc7tsbi49NRI9+GqAOCK/LB/y89QZGluq5P
S+ISSaZhW+rxvsyQMVfMW36LcCP8hTzFv0+YNrJGf3oSXzrkBA00fp3Jm/M9rz/YbJYpSpAWx1oD
k4UjOK3jLpLFphto6BFrArINcx2QJQGjNCTNWtiVvlt3uuLm/lp/YP4PdsPUlfc9aolzYQQgEYyA
MWRkPYs3n/9XPK+DMlD91P6PO51SYF7i45g5kg978Bq1q0Zo0boXcscPMGqzgNRfTbfHJLvZNvFh
LUBVIFxchiQeIn/LJgfCea/FOIF7j3TZKWk4/Dfn2SauqpVy7mzLbH77NO9IT/WVj9th7Phwu0X4