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