Readded loading file

This commit is contained in:
pythongosssss
2023-03-03 15:27:08 +00:00
parent a5c5c97ded
commit 72cdd83c06
3 changed files with 26 additions and 48 deletions

View File

@@ -12,28 +12,5 @@
window.graph = app.graph;
</script>
</head>
<body>
<script>
return;
let runningNodeId = null;
let progress = null;
let clientId = null;
var input = document.createElement("input");
input.setAttribute("type", "file");
input.setAttribute("accept", ".json,image/png");
input.style.display = "none";
document.body.appendChild(input);
input.addEventListener("change", function () {
var file = input.files[0];
prompt_file_load(file);
});
function loadGraph() {
input.click();
}
</script>
</body>
<body></body>
</html>