mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 17:53:16 +00:00
Update app.js, add clipboard util
This commit is contained in:
parent
8f723941d7
commit
c271babda3
1 changed files with 5 additions and 1 deletions
6
resources/assets/js/app.js
vendored
6
resources/assets/js/app.js
vendored
|
@ -153,6 +153,10 @@ window.App.util = {
|
||||||
let u = url + '/embed';
|
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>';
|
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);
|
||||||
|
})
|
||||||
|
|
||||||
};
|
};
|
Loading…
Reference in a new issue