summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Ball <cycomachead@gmail.com>2014-10-27 18:19:29 -0700
committerMichael Ball <cycomachead@gmail.com>2014-10-27 18:19:29 -0700
commit0dcca0606c3ae570110614d0dd94d6a38255100f (patch)
tree6541f796fe390fd8ae60c371fa11d9e1b0834cbf
parent5f3279990be3478fde79b94f7dbd5d7da80df84b (diff)
downloadsnap-byow-0dcca0606c3ae570110614d0dd94d6a38255100f.tar.gz
snap-byow-0dcca0606c3ae570110614d0dd94d6a38255100f.zip
Set Default Save location to Cloud on Snap! load
When Snap! is loaded, Snap! will now check whether a user is logged in (via the presence of `SnapCloud.username`) and if so, the default save location will be the cloud.
-rw-r--r--gui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui.js b/gui.js
index 04481cc..bb440b1 100644
--- a/gui.js
+++ b/gui.js
@@ -190,7 +190,7 @@ IDE_Morph.prototype.init = function (isAutoFill) {
// additional properties:
this.cloudMsg = null;
- this.source = 'local';
+ this.source = SnapCloud.username ? 'cloud' : 'local';
this.serializer = new SnapSerializer();
this.globalVariables = new VariableFrame();