Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pwabuilder/pwainstall

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pwabuilder/pwainstall - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc