@@ -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);
+ })
};