Repository navigation
A small fix for custom install buttons.
Fixed
kirbyPwa.install()no longer throws when the browser refuses to show the install prompt, for example when it is called outside of a click. It now returns a rejected promise and keeps the prompt, so the next click on an install button can still install your site. Before, the prompt was lost after such a call.
Call kirbyPwa.install() from a click or another user action. The built-in pwa/install snippet already does this.
Compatibility
Tested with Kirby 5.6.2 and Kirby 6.0.0-rc.3. composer.json declares "compatible": "^5.0 || ^6.0".
Repository: https://github.com/owebstudio/kirby-pwa
License: MIT, see LICENSE