Socket
Socket
Sign inDemoInstall

react-pwa-install-prompt

Package Overview
Dependencies
6
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

8

dist/index.js

@@ -76,7 +76,15 @@ var React = require('react');

var onResize = function onResize() {
setPwaInfos(_extends({}, pwaInfos, {
isStandalone: checkStandalone()
}));
};
window.addEventListener('beforeinstallprompt', beforeinstallpromptHandler);
window.addEventListener('appinstalled', onAppInstalled);
window.addEventListener("resize", onResize);
return function () {
window.removeEventListener('beforeinstallprompt', beforeinstallpromptHandler);
window.removeEventListener('appinstalled', onAppInstalled);
window.removeEventListener("resize", onResize);
};

@@ -83,0 +91,0 @@ }, [pwaInfos]);

@@ -76,7 +76,15 @@ import { useState, useEffect } from 'react';

var onResize = function onResize() {
setPwaInfos(_extends({}, pwaInfos, {
isStandalone: checkStandalone()
}));
};
window.addEventListener('beforeinstallprompt', beforeinstallpromptHandler);
window.addEventListener('appinstalled', onAppInstalled);
window.addEventListener("resize", onResize);
return function () {
window.removeEventListener('beforeinstallprompt', beforeinstallpromptHandler);
window.removeEventListener('appinstalled', onAppInstalled);
window.removeEventListener("resize", onResize);
};

@@ -83,0 +91,0 @@ }, [pwaInfos]);

2

package.json
{
"name": "react-pwa-install-prompt",
"version": "1.0.3",
"version": "1.0.4",
"description": "A react hook to prompt the install of your PWA in supported browers (Chrome desktop & mobile)",

@@ -5,0 +5,0 @@ "author": "eric-edouard",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc