@pwabuilder/pwainstall
Advanced tools
Comparing version 1.2.2 to 1.2.3
{ | ||
"name": "@pwabuilder/pwainstall", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/pwa-install.js", |
@@ -27,3 +27,3 @@ import { | ||
deferredprompt: any; | ||
@property() deferredprompt: any; | ||
@@ -557,7 +557,2 @@ static get styles() { | ||
} | ||
if (this.deferredprompt === undefined) { | ||
// add listener once more | ||
window.addEventListener('beforeinstallprompt', (event) => this.handleInstallPromptEvent(event)); | ||
} | ||
} | ||
@@ -654,3 +649,3 @@ | ||
shouldShowInstall(): boolean { | ||
const eligibleUser = !this.usecustom && this.isSupportingBrowser && (this.hasprompt || this.isIOS); | ||
const eligibleUser = this.isSupportingBrowser && (this.hasprompt || this.isIOS); | ||
console.log('this.deferredprompt', this.deferredprompt); | ||
@@ -720,3 +715,3 @@ console.log('this.isSupportingBrowser', this.isSupportingBrowser); | ||
return html` | ||
${this.usecustom !== true || this.shouldShowInstall() && this.installed !== true ? html`<button id="openButton" @click="${() => this.openPrompt()}"> | ||
${this.usecustom !== true && this.shouldShowInstall() && this.installed !== true ? html`<button id="openButton" @click="${() => this.openPrompt()}"> | ||
<slot> | ||
@@ -723,0 +718,0 @@ ${this.installbuttontext} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
771874
2330