Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions Browser_IDE/IDEStartupMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,18 @@ async function StartIDE() {
setupIDEButtonEvents(); // uses current language

// Create execution environment and project storage objects
// These constructors don't _do_ anything important.
executionEnviroment = new ExecutionEnvironment(document.getElementById("ExecutionEnvironment"), activeLanguageSetup);
appStorage = new AppStorage();
storedProject = new IDBStoredProject(appStorage, activeLanguageSetup.getDefaultProject());

// Check if projectID exists in URL, if so, load that project
let projectID = SKO.projectID;
if (projectID) {
storedProject = new IDBStoredProject(appStorage, projectID); // Use project ID if available
}
else {
storedProject = new IDBStoredProject(appStorage, activeLanguageSetup.getDefaultProject()); // Default project
}

unifiedFS = new UnifiedFS(storedProject, executionEnviroment);

// Setup callbacks/listeners
Expand Down
1 change: 1 addition & 0 deletions Browser_IDE/splashKitOnlineEnvParams.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ let SKO = (function(){
useCompressedBinaries: getEnvParam("useCompressedBinaries", "on", true) == "on",
useMinifiedInterface: getEnvParam("useMinifiedInterface") == "on",
isPRPreview: getEnvParam("isPRPreview", isPreview ? "on" : "off") == "on",
projectID: getEnvParam("projectID", null, true) // add projectID
};
})();
Loading