forked from MarseyWorld/MarseyWorld
fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4949321#context
parent
ed66efce79
commit
4838784a98
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue