From f593f67d50d66e12da3861b0c5feeb320ed2e62b Mon Sep 17 00:00:00 2001 From: jmoenig Date: Mon, 18 Mar 2013 16:07:39 +0100 Subject: Cloud #signup URL switch adding #signup to the URL directly opens the cloud signup dialog. http://snap.berkeley.edu/snapsource/snap.html#signup --- gui.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gui.js') diff --git a/gui.js b/gui.js index 0619201..1ba307e 100644 --- a/gui.js +++ b/gui.js @@ -233,6 +233,8 @@ IDE_Morph.prototype.openIn = function (world) { } else if (location.hash.substr(0, 6) === '#lang:') { this.setLanguage(location.hash.substr(6)); this.newProject(); + } else if (location.hash.substr(0, 7) === '#signup') { + this.createCloudAccount(); } }; @@ -2860,6 +2862,11 @@ IDE_Morph.prototype.initializeCloud = function () { IDE_Morph.prototype.createCloudAccount = function () { var myself = this, world = this.world(); +/* + // force-logout, commented out for now: + delete localStorage['-snap-user']; + SnapCloud.clear(); +*/ new DialogBoxMorph( null, function (user) { -- cgit v1.3.1