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.
pull/3/merge
Michael Ball 2014-10-27 18:19:29 -07:00
rodzic 5f3279990b
commit 0dcca0606c
1 zmienionych plików z 1 dodań i 1 usunięć

2
gui.js
Wyświetl plik

@ -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();