Docker/Voltaserve/desktop/renderer.js
2024-04-17 20:22:30 +02:00

11 lines
371 B
JavaScript

window.onload = () => {
window.electronAPI.voltaserve.getFileList("/example").then((result) => {
document.getElementById("get-file-list").innerText = JSON.stringify(result);
});
window.electronAPI.voltaserve
.uploadFile("/example/file.txt")
.then((result) => {
document.getElementById("upload-file").innerText = JSON.stringify(result);
});
};