mirror of
https://framagit.org/JonathanMM/sutom.git
synced 2024-05-11 02:06:43 +02:00
Fix #17 : Message d'erreur si le navigateur n'est pas compatible avec le partage
This commit is contained in:
parent
4d54756d92
commit
3ca0614ef3
|
@ -29,9 +29,14 @@ export default class FinDePartiePanel {
|
||||||
NotificationMessage.ajouterNotification("Votre navigateur n'est pas compatible");
|
NotificationMessage.ajouterNotification("Votre navigateur n'est pas compatible");
|
||||||
}
|
}
|
||||||
|
|
||||||
navigator.clipboard.writeText(this._resumeTexte + "\n\nhttps://sutom.nocle.fr");
|
navigator.clipboard
|
||||||
|
.writeText(this._resumeTexte + "\n\nhttps://sutom.nocle.fr")
|
||||||
NotificationMessage.ajouterNotification("Résumé copié dans le presse papier");
|
.then(() => {
|
||||||
|
NotificationMessage.ajouterNotification("Résumé copié dans le presse papier");
|
||||||
|
})
|
||||||
|
.catch((raison) => {
|
||||||
|
NotificationMessage.ajouterNotification("Votre navigateur n'est pas compatible");
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue