mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-22 23:16:53 +00:00
parent
918e52b37b
commit
8497e5b95d
@ -34,7 +34,7 @@ GiteaSaver.prototype.save = function(text,method,callback) {
|
||||
"Authorization": "Basic " + window.btoa(username + ":" + password)
|
||||
};
|
||||
// Bail if we don't have everything we need
|
||||
if(!username || !password || !repo || !path || !filename) {
|
||||
if(!username || !password || !repo || !filename) {
|
||||
return false;
|
||||
}
|
||||
// Make sure the path start and ends with a slash
|
||||
|
@ -34,7 +34,7 @@ GitHubSaver.prototype.save = function(text,method,callback) {
|
||||
"Authorization": "Basic " + window.btoa(username + ":" + password)
|
||||
};
|
||||
// Bail if we don't have everything we need
|
||||
if(!username || !password || !repo || !path || !filename) {
|
||||
if(!username || !password || !repo || !filename) {
|
||||
return false;
|
||||
}
|
||||
// Make sure the path start and ends with a slash
|
||||
|
@ -34,7 +34,7 @@ GitLabSaver.prototype.save = function(text,method,callback) {
|
||||
"Private-Token": password
|
||||
};
|
||||
// Bail if we don't have everything we need
|
||||
if(!username || !password || !repo || !path || !filename) {
|
||||
if(!username || !password || !repo || !filename) {
|
||||
return false;
|
||||
}
|
||||
// Make sure the path start and ends with a slash
|
||||
|
Loading…
Reference in New Issue
Block a user