From 1c0aa4c2caafad2806580c74b7c39a96af0c078c Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 9 Jun 2021 12:42:27 +0200 Subject: [PATCH] reformatted some code for linting etc. no functional changes (I hope ^^) --- src/gui.js | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/gui.js b/src/gui.js index 3f775408..d0d0c7fa 100644 --- a/src/gui.js +++ b/src/gui.js @@ -286,7 +286,7 @@ IDE_Morph.prototype.init = function (isAutoFill) { }; IDE_Morph.prototype.openIn = function (world) { - var hash, myself = this, urlLanguage = null; + var hash, myself = this; function initUser(username) { sessionStorage.username = username; @@ -472,13 +472,22 @@ IDE_Morph.prototype.openIn = function (world) { // xml project if (hash.substr(0, 8) === '') + 10)); - applyFlags(myself.cloud.parseDict(hash.substr(hash.indexOf('') + 10))); + this.rawOpenProjectString( + hash.slice(0,hash.indexOf('') + 10) + ); + applyFlags( + myself.cloud.parseDict( + hash.substr(hash.indexOf('') + 10) + ) + ); // no project, only flags } else if (idx == 0){ applyFlags(myself.cloud.parseDict(hash)); // xml file path - // three path types allowed: absolute (http...) , relative to site ("/path") or relative to folder ("path") + // three path types allowed: + // (1) absolute (http...), + // (2) relative to site ("/path") or + // (3) relative to folder ("path") } else { this.shield = new Morph(); this.shield.alpha = 0;