Skip to content

Commit dd4c154

Browse files
authored
fix(client): append file input to body to fix iOS Safari upload dialog (#1886)
1 parent 356bc82 commit dd4c154

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/plugos/syscalls/editor.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,10 @@ export function editorSyscalls(client: Client): SysCallMapping {
284284
reject(e);
285285
};
286286

287+
input.style.display = "none";
288+
document.body.appendChild(input);
287289
input.click();
290+
setTimeout(() => document.body.removeChild(input), 1000);
288291
});
289292
},
290293
"editor.flashNotification": (

0 commit comments

Comments
 (0)