Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealGeoDash2019 authored Oct 22, 2024
1 parent 1c3fc65 commit 34c70dd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,27 @@
};
r.click();
}

const importProfile = function(dataOverride = null) {
return new Promise((resv, rej) => {
try {
return showOpenFilePicker({
multiple: false,
accept: ".rf"
}).then(async files => {
if (files && files[0]) {
const fileInfo = await files[0].getFile();
const fileContent = await fileInfo.arrayBuffer();
return resv(new Uint8Array(fileContent));
}
}).catch(err => {
return rej("Something Broke")
})
} catch {
return rej("Missing APIs")
}
});
}

document.querySelector("input.custom-toggle").addEventListener("change", ({target}) => {
try {
Expand Down

0 comments on commit 34c70dd

Please sign in to comment.