1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00

add a A2HSInstall button

This commit is contained in:
Daniel 2021-12-16 14:01:57 -03:00
parent adb246abef
commit a51903b227
3 changed files with 13 additions and 1 deletions

View file

@ -1664,6 +1664,7 @@ $(document).ready(function () {
window.addEventListener('beforeinstallprompt', (e) => {
// Prevent Chrome 67 and earlier from automatically showing the prompt
e.preventDefault();
$('.A2HSInstall').show();
// Stash the event so it can be triggered later.
deferredPrompt = e;
var beforeinstallprompt = Cookies.get('beforeinstallprompt');