New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

a2hs.js

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

a2hs.js - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

11

index.js

@@ -6,3 +6,3 @@ /**

*
* a2hs.js v0.4.0 at 10/05/2019
* a2hs.js v0.4.1 at 10/05/2019
*

@@ -21,6 +21,6 @@ * Add to Home Screen

* new AddToHomeScreen({
* brandName: "Demo",
* fontFamily: "Tahoma, sans-serif",
* backgroundColor: "red",
* color: "white",
* padding: "5px"
* color: "white"
* });

@@ -41,4 +41,5 @@ */

var color = settings.color || "#5d5d5d";
var fontSize = settings.fontSize || "1rem";
var fontSize = settings.fontSize || "0.9rem";
// Content
var brandName = settings.brandName || "";
var logoImage =

@@ -55,3 +56,3 @@ settings.logoImage ||

settings.htmlContent ||
"Install web app on your iOS device: Tap share and Add to homescreen ↓";
`Install <strong>${brandName} web app</strong> on your iOS device: tap share and <strong>Add to Home Screen</strong> ↓`;
// Define iOS User-Agent variable

@@ -58,0 +59,0 @@ var iOS = /iphone|ipad|ipod/.test(window.navigator.userAgent.toLowerCase());

{
"name": "a2hs.js",
"version": "0.4.0",
"version": "0.4.1",
"description": "A useful modern JavaScript solution for adding (install) a progressive web application (PWA) to the Home screen of your iOS mobile device.",

@@ -57,3 +57,3 @@ "browserslist": [

"ecmaFeatures": {
"experimentalObjectRestSpread": true
"experimentalObjectRestSpread": "on"
}

@@ -60,0 +60,0 @@ }

@@ -32,8 +32,8 @@ <h1 align="center">📲 a2hs.js</h1>

new AddToHomeScreen({
brandName: "Demo",
fontFamily: "Tahoma, sans-serif",
backgroundColor: "red",
color: "white",
padding: "5px"
color: "white"
});
```
<img src="https://user-images.githubusercontent.com/3104648/28352004-a055292c-6c4b-11e7-9c6b-a94cdc2a5458.png" alt="PWA logo"/>
var AddToHomeScreen = require("../../");
new AddToHomeScreen({
brandName: "Demo",
fontFamily: "Tahoma, sans-serif",

@@ -5,0 +6,0 @@ backgroundColor: "red",

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