Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function handleInstalled(ev) {
const date = new Date(ev.timeStamp / 1000);
console.log(`Ура! Наше приложение установили в ${date.toTimeString()}`);
}
// Используем атрибут IDL обработчика события
window.onappinstalled = handleInstalled;
// Используем .addEventListener()
window.addEventListener('appinstalled', handleInstalled);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.