Fix for images in Firefox
This commit is contained in:
parent
713394ea8a
commit
fa88c74d23
|
|
@ -87,7 +87,8 @@ elixir(function(mix) {
|
||||||
mix.scripts([
|
mix.scripts([
|
||||||
'public/js/pdf_viewer.js',
|
'public/js/pdf_viewer.js',
|
||||||
'public/js/compatibility.js',
|
'public/js/compatibility.js',
|
||||||
'public/js/pdfmake.min.js',
|
//'public/js/pdfmake.min.js',
|
||||||
|
'public/js/pdfmake.js',
|
||||||
'public/js/vfs.js'
|
'public/js/vfs.js'
|
||||||
], 'public/pdf.built.js');
|
], 'public/pdf.built.js');
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -32501,10 +32501,11 @@
|
||||||
|
|
||||||
var fnTyped = {
|
var fnTyped = {
|
||||||
arraySet: function (dest, src, src_offs, len, dest_offs) {
|
arraySet: function (dest, src, src_offs, len, dest_offs) {
|
||||||
if (src.subarray && dest.subarray) {
|
// https://github.com/bpampuch/pdfmake/issues/577#issuecomment-238223949
|
||||||
dest.set(src.subarray(src_offs, src_offs+len), dest_offs);
|
//if (src.subarray && dest.subarray) {
|
||||||
return;
|
// dest.set(src.subarray(src_offs, src_offs+len), dest_offs);
|
||||||
}
|
// return;
|
||||||
|
//}
|
||||||
// Fallback to ordinary array
|
// Fallback to ordinary array
|
||||||
for(var i=0; i<len; i++) {
|
for(var i=0; i<len; i++) {
|
||||||
dest[dest_offs + i] = src[src_offs + i];
|
dest[dest_offs + i] = src[src_offs + i];
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue