mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-03-11 17:15:37 +00:00
fix install link copy functionality
This commit is contained in:
parent
fb3fe2767c
commit
bdf05a12ea
1 changed files with 2 additions and 7 deletions
|
|
@ -485,13 +485,8 @@ export default function landingTemplate(manifest, config = {}) {
|
|||
installLink.href = 'stremio://' + location;
|
||||
}
|
||||
|
||||
installLink.addEventListener('click', ()=>{
|
||||
document.addEventListener('copy', function(e) {
|
||||
e.clipboardData.setData('text/plain', installLink.href);
|
||||
e.preventDefault();
|
||||
}, true);
|
||||
|
||||
document.execCommand('copy');
|
||||
installLink.addEventListener('click', function() {
|
||||
navigator.clipboard.writeText(installLink.href.replace('stremio://', 'https://'));
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Reference in a new issue