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.0 to 1.2.1

2

package.json
{
"name": "@pwabuilder/pwainstall",
"version": "1.2.0",
"version": "1.2.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/pwa-install.js",

@@ -52,3 +52,2 @@ import {

right: 0;
z-index: var(--modal-z-index);
}

@@ -61,2 +60,3 @@

#installModal {
position: absolute;
background: var(--modal-background-color);

@@ -376,3 +376,3 @@ margin: 3em 12em;

#buttonsContainer {
bottom: -1em;
height: 70px;
background: transparent;

@@ -451,2 +451,3 @@ }

box-shadow: none;
max-width: 100%;
}

@@ -543,17 +544,7 @@

document.onkeyup = async (e) => {
console.log(e.key);
if (e.key === "Escape") {
this.openmodal = false;
if (this.hasAttribute('openmodal')) {
this.removeAttribute('openmodal');
}
let event = new CustomEvent('hide');
this.dispatchEvent(event);
await this.requestUpdate();
document.addEventListener('keyup', (event) => {
if (event.key === "Escape") {
this.cancel();
}
}
});
}

@@ -666,3 +657,3 @@

shouldShowInstall(): boolean {
const eligibleUser = !this.usecustom && this.isSupportingBrowser && this.hasprompt === true || this.isIOS;
const eligibleUser = !this.usecustom && this.isSupportingBrowser && (this.hasprompt || this.isIOS);
console.log('this.deferredprompt', this.deferredprompt);

@@ -738,4 +729,2 @@ console.log('this.isSupportingBrowser', this.isSupportingBrowser);

${this.openmodal === true ? html`<div id="background" @click="${() => this.cancel()}"></div>` : null}
${

@@ -745,2 +734,3 @@ this.openmodal === true ?

<div id="installModalWrapper">
${this.openmodal ? html`<div id="background" @click="${() => this.cancel()}"></div>` : null}
<div id="installModal">

@@ -747,0 +737,0 @@ <div id="headerContainer">

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