« MediaWiki:Common.js » : différence entre les versions
Page de l’interface de MediaWiki
Autres actions
Aucun résumé des modifications |
mAucun résumé des modifications Balise : Révoqué |
||
| Ligne 194 : | Ligne 194 : | ||
if (navigator.clipboard && window.isSecureContext) { | if (navigator.clipboard && window.isSecureContext) { | ||
navigator.clipboard.writeText(url) | navigator.clipboard.writeText(url) | ||
.then(function () { showToast(' | .then(function () { showToast('Lien copié !'); }) | ||
.catch(function () { showToast('❌ Copie impossible'); }); | .catch(function () { showToast('❌ Copie impossible'); }); | ||
} else { | } else { | ||
| Ligne 214 : | Ligne 214 : | ||
}); | }); | ||
/* === fin Modèle:Règle === */ | /* === fin Modèle:Règle === */ | ||