Skip to content

Commit

Permalink
Remove unuseful options
Browse files Browse the repository at this point in the history
  • Loading branch information
Vic Shóstak committed May 10, 2019
1 parent 89e746b commit d03aa09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2019 True web artisans https://1wa.co
* http://opensource.org/licenses/MIT The MIT License (MIT)
*
* a2hs.js v0.4.1 at 10/05/2019
* a2hs.js v0.4.2 at 10/05/2019
*
* Add to Home Screen
*
Expand All @@ -27,12 +27,8 @@ var AddToHomeScreen = function(settings = {}) {
// Container styles
var backgroundColor = settings.backgroundColor || "#f9f9f9";
var padding = settings.padding || "10px";
var positionRight = settings.positionRight || 0;
var positionBottom = settings.positionBottom || 0;
var positionLeft = settings.positionLeft || 0;
var shadowColor = settings.shadowColor || "#e9e9e9";
var shadowSize = settings.shadowSize || "10px";
var width = settings.width || "100%";
// Content styles
var fontFamily = settings.fontFamily || "-apple-system, sans-serif";
var color = settings.color || "#5d5d5d";
Expand Down Expand Up @@ -73,10 +69,10 @@ var AddToHomeScreen = function(settings = {}) {
box-shadow: ${shadowColor} 0 0 ${shadowSize};
background-color: ${backgroundColor};
padding: ${padding};
right: ${positionRight};
bottom: ${positionBottom};
left: ${positionLeft};
width: ${width};
width: 100%;
bottom: 0;
right: 0;
left: 0;
}
.a2hs__container .a2hs__logo {
padding: ${padding};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "a2hs.js",
"version": "0.4.1",
"version": "0.4.2",
"description": "A useful modern JavaScript solution for adding (install) a progressive web application (PWA) to the Home screen of your iOS mobile device.",
"browserslist": [
"last 4 iOS major versions"
Expand Down

0 comments on commit d03aa09

Please sign in to comment.