mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 23:28:06 +02:00
Merge pull request #4420 from prometheansacrifice/RemovingCheckSetPresence
Removing set-presence-in-ImageData check from canvas.js
This commit is contained in:
commit
31ea4e0f4d
2 changed files with 16 additions and 9 deletions
|
@ -524,3 +524,15 @@ if (typeof PDFJS === 'undefined') {
|
|||
PDFJS.disableHistory = true;
|
||||
}
|
||||
})();
|
||||
|
||||
(function checkSetPresenceInImageData() {
|
||||
if (window.CanvasPixelArray) {
|
||||
if (typeof window.CanvasPixelArray.prototype.set !== 'function') {
|
||||
window.CanvasPixelArray.prototype.set = function(arr) {
|
||||
for (var i = 0, ii = this.length; i < ii; i++) {
|
||||
this[i] = arr[i];
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue