1
0
Fork 0

Update app.js, add clipboard util

This commit is contained in:
Daniel Supernault 2020-07-25 20:54:11 -06:00
parent 8f723941d7
commit c271babda3
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 5 additions and 1 deletions

View File

@ -153,6 +153,10 @@ window.App.util = {
let u = url + '/embed';
return '<iframe src="'+u+'" class="pixelfed__embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe><script async defer src="'+window.location.origin +'/embed.js"><\/script>';
})
}
},
clipboard: (function(data) {
return navigator.clipboard.writeText(data);
})
};