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:
parent
adb246abef
commit
a51903b227
3 changed files with 13 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue