Max Parry
Max Parry
nice open source editor, im trying to emulate the file picker right now
here is some code that patches the issue, at least on firefox also the open button aint gonna work either. it uses the same API as the [`showSaveFilePicker()`](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileHandle/createWritable) function (the...
And even weirder I can see a catch statement for the [`showOpenFilePicker()`](https://developer.mozilla.org/en-US/docs/Web/API/Window/showOpenFilePicker) call, but not the [`showSaveFilePicker()`](https://developer.mozilla.org/en-US/docs/Web/API/Window/showSaveFilePicker) call. Weird, feels like someone forgot to catch for errors there. It's lucky...
for some reason i can't get the openFilePicker call to work. ``` window.showOpenFilePicker = function(fileoptions) { try { return new Promise((resolve) => { resolve({ fileoptions: fileoptions, getFile: function() { let...
finished and working: ``` window.showOpenFilePicker = function(fileoptions) { console.log("here") window.openfileopt = fileoptions; return new Promise((resolve) => { alert("inside promise openfilepicker") resolve([{ getFile: function() { alert("got to getfile") return new Promise((resolve)...
could you implement my code? will open a pull request if you want me to
congratulations, you changed your script and broke my code :) working on a fix, if you do this again ill have to create a repo for this ;) lol
umm no you didnt sorry it was just micropython code instead of blockly code ;0
https://github.com/Buggem/sysstorapi-hack/tree/main incase of future updates, here it is
hurry up and fix