check for undefined

pull/141/head
Michael 2024-11-10 08:24:07 +01:00
rodzic 4b4a0c658a
commit a323287708
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -8,7 +8,9 @@ function BeetleCloud (url, ide) {
BeetleCloud.prototype.init = function (url, ide) {
this.url = url;
this.ide = ide;
this.checkCredentials();
if (typeof this.url !== 'undefined') {
this.checkCredentials();
}
};
BeetleCloud.prototype.parseDict = Cloud.prototype.parseDict;
@ -245,6 +247,10 @@ BeetleCloud.prototype.saveProject = function (ignorethis, discardthis, callBack,
myself.ide.showMessage('Uploading project...');
if (typeof myself.ide.tags == 'undefined') {
myself.ide.tags = ""
}
//(path, body, callBack, errorCall, errorMsg)
myself.post(
'/projects/save?projectname='