mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-01-11 22:40:22 +00:00
remove clipboard permission prompt (#176)
This commit is contained in:
parent
2924869a43
commit
fb3fe2767c
1 changed files with 9 additions and 1 deletions
|
|
@ -482,9 +482,17 @@ export default function landingTemplate(manifest, config = {}) {
|
|||
.map(([key, value]) => key)[0] || configurationValue;
|
||||
const configuration = configurationValue && configurationValue.length ? '/' + configurationValue : '';
|
||||
const location = window.location.host + configuration + '/manifest.json'
|
||||
navigator.clipboard.writeText('https://' + location);
|
||||
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');
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue