Skip to content

Commit bab73a8

Browse files
eduardoRothihadeed
authored andcommitted
fix(livereload): wrong usage of reject, meant resolve. (#167)
* fix(wkwebview): Images not loading in Ionic WKWebView * fix(livereload): Images not loading When running in an emulator or in a device with the flag --livereload images were not showing. * lint(livereload): Updated for ihadeed comments * fix(livereload): Using reject instead of resolve Reject caused an error and did not return the URL. Fixed this resolving and returning the image URL back to the promise.
1 parent 70f8e21 commit bab73a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/image-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ export class ImageLoader {
471471

472472
// if we're running with livereload, ignore cache and call the resource from it's URL
473473
if(this.isDevServer){
474-
return reject();
474+
return resolve(url);
475475
}
476476

477477
// get file name

0 commit comments

Comments
 (0)