@pwabuilder/pwainstall
Advanced tools
Comparing version 0.9.9 to 0.9.10
{ | ||
"name": "@pwabuilder/pwainstall", | ||
"version": "0.9.9", | ||
"version": "0.9.10", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/pwa-install.js", |
@@ -46,2 +46,5 @@ # pwa-install | ||
| `descriptionheader` | `descriptionheader` | Controls the text of the description header | `string` | `Description` | | ||
| `installbuttontext` | `installbuttontext` | Controls the text of the install button | `string` | `Install` | | ||
| `cancelbuttontext` | `cancelbuttontext` | Controls the text of the cancel button | `string` | `Cancel` | | ||
| `iosinstallinfotext`| `iosinstallinfotext`| Controls the iOS installation info text | `string` | `Tap the share button and then 'Add to Homescreen'` | | ||
@@ -48,0 +51,0 @@ ### Methods |
@@ -22,2 +22,5 @@ import { | ||
@property() descriptionheader: string = "Description"; | ||
@property() installbuttontext: string = "Install"; | ||
@property() cancelbuttontext: string = "Cancel"; | ||
@property() iosinstallinfotext: string = "Tap the share button and then 'Add to Homescreen'"; | ||
@@ -526,3 +529,3 @@ static get styles() { | ||
<slot> | ||
Install | ||
${this.installbuttontext} | ||
</slot> | ||
@@ -598,5 +601,5 @@ </button>` : null} | ||
${!this.isIOS ? html`<div id="buttonsContainer"> | ||
${this.deferredprompt ? html`<button id="installButton" @click="${() => this.install()}">Install ${this.manifestdata.short_name}</button>` : html`<button @click="${() => this.cancel()}" id="installButton">Close</button>`} | ||
${this.deferredprompt ? html`<button id="installButton" @click="${() => this.install()}">${this.installbuttontext} ${this.manifestdata.short_name}</button>` : html`<button @click="${() => this.cancel()}" id="installButton">${this.cancelbuttontext}</button>`} | ||
</div> | ||
</div>` : html`<p id="iosText">Tap the share button and then 'Add to Homescreen'</p>`} | ||
</div>` : html`<p id="iosText">${this.iosinstallinfotext}</p>`} | ||
` | ||
@@ -603,0 +606,0 @@ : null |
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
708216
21
1547
64