diff --git a/libs/features/webapp-prompt/webapp-prompt.js b/libs/features/webapp-prompt/webapp-prompt.js index e56971ea13..4d0e7422f6 100644 --- a/libs/features/webapp-prompt/webapp-prompt.js +++ b/libs/features/webapp-prompt/webapp-prompt.js @@ -43,7 +43,7 @@ class AppPrompt { await this.getData(content); // TODO: we might need to set this at the page level through metadata // so that the same prompt can lead to different apps - if (!this.options['redirect-url']) return; + if (!this.options['redirect-url'] || !this.options['product-name']) return; this.template = this.decorate(); @@ -108,8 +108,8 @@ class AppPrompt { // TODO: should we allow for app icon to be set as SVG? decorate = () => { - this.elements.closeIcon = toFragment``; - this.elements.cta = toFragment``; + this.elements.closeIcon = toFragment``; + this.elements.cta = toFragment``; this.elements.profile = Object.keys(this.profile).length ? toFragment`
@@ -122,7 +122,7 @@ class AppPrompt {
` : ''; - return toFragment`
+ return toFragment`
${this.elements.closeIcon}
${this.image}