fix(web): Update image path when setting Options

This commit is contained in:
Darcy Wong 2023-10-06 14:15:12 +07:00
parent 018abd4319
commit a5aef7aeae

View file

@ -243,6 +243,9 @@ export class BannerController {
case 'imagePath':
// Determines the image file to use for ImageBanners.
this.imagePath = optionSpec[key];
if(this.container.banner instanceof ImageBanner) {
this.container.banner.setImagePath(optionSpec[key]);
}
break;
default:
// Invalid option specified!