add-to-homescreen-control
Advanced tools
Comparing version 0.5.0 to 0.6.0
{ | ||
"name": "add-to-homescreen-control", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "Library that allows you to control new Add to Home Screen prompt behavior", | ||
@@ -36,2 +36,3 @@ "main": "lib/add-to-homescreen-control.js", | ||
"jsdom-global": "3.0.2", | ||
"lodash": "^4.17.11", | ||
"mocha": "^4.0.1", | ||
@@ -42,3 +43,4 @@ "uglifyjs-webpack-plugin": "^1.2.7", | ||
"yargs": "^10.0.3" | ||
} | ||
}, | ||
"dependencies": {} | ||
} |
# Add to Home Screen banner control | ||
This library allows you to programatically show Add to Home Screen banner. this feature is available from Chrome 68 but the library works on the older versions aswell. It's recomennded to read [useful information](https://github.com/filrak/add-to-homescreen-control/blob/master/README.md#useful-information) section before using this library to avoid common problems and gotchas. | ||
This library allows you to programatically show Add to Home Screen banner. This feature is available from Chrome 68 but the library works on the older versions aswell. It's recomennded to read [useful information](https://github.com/filrak/add-to-homescreen-control/blob/master/README.md#useful-information) section before using this library to avoid common problems and gotchas. | ||
@@ -29,3 +29,3 @@ # How to use this library | ||
```` | ||
3. Show the Add to Home Screen banner whenever you want to with `prompt()` method. The banner will appear only if the [criteria](https://developers.google.com/web/fundamentals/app-install-banners#criteria) are met. You can handle unmet criteria in two ways: | ||
3. Show the Add to Home Screen banner whenever you want to with `prompt()` method. The banner will appear only if the [criteria](https://github.com/filrak/add-to-homescreen-control#add-to-home-screen-criteria-chrome) are met. You can handle unmet criteria in two ways: | ||
@@ -42,3 +42,3 @@ - make use of the fact that `prompt()` returns a Promise (recommended): | ||
[Here](https://github.com/filrak/add-to-homescreen-control/blob/master/index.html) you can find example usage of this library (with local import) | ||
# Useful information | ||
@@ -45,0 +45,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146813
18