We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd4cd8e commit 43223d8Copy full SHA for 43223d8
src/providers/image-loader.ts
@@ -163,6 +163,11 @@ export class ImageLoader {
163
* @returns {Promise<string>} Returns a promise that will always resolve with an image URL
164
*/
165
getImagePath(imageUrl: string): Promise<string> {
166
+
167
+ if (typeof imageUrl !== 'string' || imageUrl.length <= 0) {
168
+ return Promise.reject('The image url provided was empty or invalid.');
169
+ }
170
171
return new Promise<string>((resolve, reject) => {
172
173
const getImage = () => {
0 commit comments