mirror of
https://github.com/godotengine/godot
synced 2024-09-05 08:44:43 +00:00
Fix files_dropped in HTML5 export.
(Ignore trailing slash when creating the temporary directory)
This commit is contained in:
parent
0e26152392
commit
40f26cb260
|
@ -262,7 +262,7 @@ const GodotInputDragDrop = {
|
|||
const DROP = `/tmp/drop-${parseInt(Math.random() * (1 << 30), 10)}/`;
|
||||
const drops = [];
|
||||
const files = [];
|
||||
FS.mkdir(DROP);
|
||||
FS.mkdir(DROP.slice(0, -1)); // Without trailing slash
|
||||
GodotInputDragDrop.pending_files.forEach((elem) => {
|
||||
const path = elem['path'];
|
||||
GodotFS.copy_to_fs(DROP + path, elem['data']);
|
||||
|
|
Loading…
Reference in a new issue