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", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11326
116
0