Skip to content

Commit

Permalink
Fix files_dropped in HTML5 export.
Browse files Browse the repository at this point in the history
(Ignore trailing slash when creating the temporary directory)

(cherry picked from commit 40f26cb)
  • Loading branch information
Fro-Z authored and akien-mga committed Dec 9, 2021
1 parent 229489f commit e00d20a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/javascript/js/libs/library_godot_input.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit e00d20a

Please sign in to comment.