Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions demos/browser/js/pptxgen.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demos/browser/js/pptxgen.bundle.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/pptxgen.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pptxgen.bundle.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/pptxgen.cjs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PptxGenJS 3.11.0-beta @ 2022-11-11T07:31:45.531Z */
/* PptxGenJS 3.11.0-beta @ 2022-12-08T14:33:57.261Z */
'use strict';

var JSZip = require('jszip');
Expand Down Expand Up @@ -5076,7 +5076,7 @@ function encodeSlideMediaRels(layout) {
xhr_1.onerror = function (ex) {
rel.data = IMG_BROKEN;
candidateRels.filter(function (dupe) { return dupe.isDuplicate && dupe.path === rel.path; }).forEach(function (dupe) { return (dupe.data = rel.data); });
reject("ERROR! Unable to load image (xhr.onerror): ".concat(rel.path));
reject("ERROR! Unable to load image (xhr.onerror): ".concat(rel.path, " | ex: ").concat(ex));
};
// B: Execute request
xhr_1.open('GET', rel.path);
Expand Down Expand Up @@ -5134,7 +5134,7 @@ function createSvgPngPreview(rel) {
};
image.onerror = function (ex) {
rel.data = IMG_BROKEN;
reject("ERROR! Unable to load image (image.onerror): ".concat(rel.path));
reject("ERROR! Unable to load image (image.onerror): ".concat(rel.path, " | ex: ").concat(ex));
};
// C: Load image
image.src = typeof rel.data === 'string' ? rel.data : IMG_BROKEN;
Expand Down
6 changes: 3 additions & 3 deletions dist/pptxgen.es.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PptxGenJS 3.11.0-beta @ 2022-11-11T07:31:45.535Z */
/* PptxGenJS 3.11.0-beta @ 2022-12-08T14:33:57.264Z */
import JSZip from 'jszip';

/******************************************************************************
Expand Down Expand Up @@ -5070,7 +5070,7 @@ function encodeSlideMediaRels(layout) {
xhr_1.onerror = function (ex) {
rel.data = IMG_BROKEN;
candidateRels.filter(function (dupe) { return dupe.isDuplicate && dupe.path === rel.path; }).forEach(function (dupe) { return (dupe.data = rel.data); });
reject("ERROR! Unable to load image (xhr.onerror): ".concat(rel.path));
reject("ERROR! Unable to load image (xhr.onerror): ".concat(rel.path, " | ex: ").concat(ex));
};
// B: Execute request
xhr_1.open('GET', rel.path);
Expand Down Expand Up @@ -5128,7 +5128,7 @@ function createSvgPngPreview(rel) {
};
image.onerror = function (ex) {
rel.data = IMG_BROKEN;
reject("ERROR! Unable to load image (image.onerror): ".concat(rel.path));
reject("ERROR! Unable to load image (image.onerror): ".concat(rel.path, " | ex: ").concat(ex));
};
// C: Load image
image.src = typeof rel.data === 'string' ? rel.data : IMG_BROKEN;
Expand Down
4 changes: 2 additions & 2 deletions dist/pptxgen.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pptxgen.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/gen-media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function encodeSlideMediaRels(layout: PresSlide | SlideLayout): Promise<s
xhr.onerror = ex => {
rel.data = IMG_BROKEN
candidateRels.filter(dupe => dupe.isDuplicate && dupe.path === rel.path).forEach(dupe => (dupe.data = rel.data))
reject(`ERROR! Unable to load image (xhr.onerror): ${rel.path}`)
reject(`ERROR! Unable to load image (xhr.onerror): ${rel.path} | ex: ${ex}`)
}

// B: Execute request
Expand Down Expand Up @@ -151,7 +151,7 @@ function createSvgPngPreview(rel: ISlideRelMedia): Promise<string> {
}
image.onerror = ex => {
rel.data = IMG_BROKEN
reject(`ERROR! Unable to load image (image.onerror): ${rel.path}`)
reject(`ERROR! Unable to load image (image.onerror): ${rel.path} | ex: ${ex}`)
}

// C: Load image
Expand Down