rename
This commit is contained in:
@@ -1374,7 +1374,7 @@ async function saveProject() {
|
||||
const sanitizedName = projectName.replace(/[^a-z0-9]/gi, '_').toLowerCase() || "untitled_project";
|
||||
const a = document.createElement("a");
|
||||
a.href = URL.createObjectURL(blob);
|
||||
a.download = `${sanitizedName}.neo`;
|
||||
a.download = `${sanitizedName}.dbgide`;
|
||||
a.click();
|
||||
URL.revokeObjectURL(a.href);
|
||||
}
|
||||
@@ -1384,7 +1384,7 @@ async function loadProject(ev) {
|
||||
if (!file) return;
|
||||
|
||||
// If it's an old format file, use the old loader
|
||||
if (file.name.endsWith(".NeoIDE") || file.name.endsWith(".NeoIDEz")) {
|
||||
if (file.name.endsWith(".dbgideIDE") || file.name.endsWith(".dbgideIDEz")) {
|
||||
return oldLoadProject(ev);
|
||||
}
|
||||
|
||||
@@ -1498,12 +1498,12 @@ async function oldLoadProject(input) {
|
||||
data = JSON.parse(json);
|
||||
} catch (inflateErr) {
|
||||
console.error("Failed to parse file", inflateErr);
|
||||
return window.alert("Invalid or corrupted project file. Please make sure you're loading a valid .neo or .NeoIDE file.");
|
||||
return window.alert("Invalid or corrupted project file. Please make sure you're loading a valid .dbgide or .dbgideIDE file.");
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.error("Failed to parse file", err);
|
||||
return window.alert("Invalid or corrupted project file. Please make sure you're loading a valid .neo or .NeoIDE file.");
|
||||
return window.alert("Invalid or corrupted project file. Please make sure you're loading a valid .dbgide or .dbgideIDE file.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user