save project name in session storage
This commit is contained in:
parent
05f1c889ee
commit
76831e0300
@ -78,6 +78,14 @@ editor.addEventListener("change", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (sessionStorage.getItem("project-name")) {
|
||||||
|
projectName.value = sessionStorage.getItem("project-name");
|
||||||
|
}
|
||||||
|
|
||||||
|
projectName.onchange = () => {
|
||||||
|
sessionStorage.setItem("project-name", projectName.value);
|
||||||
|
};
|
||||||
|
|
||||||
loadButton.onclick = async () => {
|
loadButton.onclick = async () => {
|
||||||
const files = await promptUpload(".karlkode", false);
|
const files = await promptUpload(".karlkode", false);
|
||||||
if (files.length === 0) {
|
if (files.length === 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user