diff --git a/Browser_IDE/IDEStartupMain.js b/Browser_IDE/IDEStartupMain.js index b4c7b1f..dce519e 100644 --- a/Browser_IDE/IDEStartupMain.js +++ b/Browser_IDE/IDEStartupMain.js @@ -28,6 +28,8 @@ async function StartIDE() { setupFilePanelAndEvents(); setupMinifiedInterface(); + + let projectID = SKO.projectID; //get the projectID // Initialize compiler in parallel with everything else // This is where the bulk of the startup occurs @@ -43,10 +45,14 @@ async function StartIDE() { executionEnviroment.initialize(), (async () => { await appStorage.attach(); - await storedProject.attachToProject(); + if (projectID) { + await storedProject.attachToProject(projectID); + } else { + await storedProject.attachToProject(); + } openCodeEditors(); })() - ]) + ]); makingNewProject = false; diff --git a/Browser_IDE/splashKitOnlineEnvParams.js b/Browser_IDE/splashKitOnlineEnvParams.js index 42e00db..2dea523 100644 --- a/Browser_IDE/splashKitOnlineEnvParams.js +++ b/Browser_IDE/splashKitOnlineEnvParams.js @@ -28,5 +28,7 @@ let SKO = (function(){ useCompressedBinaries: getEnvParam("useCompressedBinaries", "on", true) == "on", useMinifiedInterface: getEnvParam("useMinifiedInterface") == "on", isPRPreview: getEnvParam("isPRPreview", isPreview ? "on" : "off") == "on", + // add projectID + projectID: getEnvParam("projectID", null, true) }; })(); \ No newline at end of file