forked from rDrama/rDrama
1
0
Fork 0
Aevann 2023-09-13 01:57:44 +03:00
parent ed66efce79
commit 4838784a98
1 changed files with 7 additions and 0 deletions

View File

@ -581,6 +581,13 @@ document.onpaste = function(event) {
const files = structuredClone(event.clipboardData.files);
if (!files.length) return
for (let file of files) {
Object.defineProperty(file, 'name', {
writable: true,
value: Math.random().toString(32).substring(2,10) + '.png'
});
}
const focused = document.activeElement;
let input;