mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 06:43:49 +00:00
Change default branch for GitHub saver to "main"
To match GitHub's new default See also #5055 for the accompanying docs change
This commit is contained in:
parent
2b60ab1fdc
commit
8cd13e2f89
@ -26,7 +26,7 @@ GitHubSaver.prototype.save = function(text,method,callback) {
|
|||||||
repo = this.wiki.getTiddlerText("$:/GitHub/Repo"),
|
repo = this.wiki.getTiddlerText("$:/GitHub/Repo"),
|
||||||
path = this.wiki.getTiddlerText("$:/GitHub/Path",""),
|
path = this.wiki.getTiddlerText("$:/GitHub/Path",""),
|
||||||
filename = this.wiki.getTiddlerText("$:/GitHub/Filename"),
|
filename = this.wiki.getTiddlerText("$:/GitHub/Filename"),
|
||||||
branch = this.wiki.getTiddlerText("$:/GitHub/Branch") || "master",
|
branch = this.wiki.getTiddlerText("$:/GitHub/Branch") || "main",
|
||||||
endpoint = this.wiki.getTiddlerText("$:/GitHub/ServerURL") || "https://api.github.com",
|
endpoint = this.wiki.getTiddlerText("$:/GitHub/ServerURL") || "https://api.github.com",
|
||||||
headers = {
|
headers = {
|
||||||
"Accept": "application/vnd.github.v3+json",
|
"Accept": "application/vnd.github.v3+json",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user