diff options
| author | jmoenig <jens@moenig.org> | 2013-03-18 16:07:39 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-03-18 16:07:39 +0100 |
| commit | f593f67d50d66e12da3861b0c5feeb320ed2e62b (patch) | |
| tree | 7a741c9a3980481669f30d94c3d62a4acee1e0fd /gui.js | |
| parent | 78ab4de381c5c0d22475f830beeb993199355c22 (diff) | |
| download | snap-byow-f593f67d50d66e12da3861b0c5feeb320ed2e62b.tar.gz snap-byow-f593f67d50d66e12da3861b0c5feeb320ed2e62b.zip | |
Cloud #signup URL switch
adding #signup to the URL directly opens the cloud signup dialog.
http://snap.berkeley.edu/snapsource/snap.html#signup
Diffstat (limited to 'gui.js')
| -rw-r--r-- | gui.js | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) { |
