diff --git a/src/renderer/actions/install.js b/src/renderer/actions/install.js index f49be1d2..a7df4083 100644 --- a/src/renderer/actions/install.js +++ b/src/renderer/actions/install.js @@ -49,11 +49,11 @@ const getJSON = phin.defaults({method: "GET", parse: "json", headers: {"User-Age const downloadFile = phin.defaults({method: "GET", followRedirects: true, headers: {"User-Agent": "BetterDiscord Installer", "Accept": "application/octet-stream"}}); const asarPath = path.join(bdDataFolder, "betterdiscord.asar"); async function downloadAsar() { - let downloadUrl = "https://api.github.com/repos/rauenzi/BetterDiscordApp/releases"; + let downloadUrl = "https://api.github.com/repos/BetterDiscord/BetterDiscord/releases"; try { const response = await getJSON(downloadUrl); const releases = response.body; - const asset = releases[0].assets.find(a => a.name === "betterdiscord.asar"); + const asset = releases && releases.length ? releases[0].assets.find(a => a.name === "betterdiscord.asar") : "https://api.github.com/repos/BetterDiscord/BetterDiscord/releases/assets/39982244"; // temporary workaround downloadUrl = asset.url; const resp = await downloadFile(downloadUrl); diff --git a/src/renderer/common/SocialLinks.svelte b/src/renderer/common/SocialLinks.svelte index 10e67b7b..7c2ea701 100644 --- a/src/renderer/common/SocialLinks.svelte +++ b/src/renderer/common/SocialLinks.svelte @@ -1,6 +1,6 @@ diff --git a/src/renderer/pages/License.svelte b/src/renderer/pages/License.svelte index 5b9bb318..20783d62 100644 --- a/src/renderer/pages/License.svelte +++ b/src/renderer/pages/License.svelte @@ -28,7 +28,7 @@ function readLicenseFile() { fs.readFile(path.join(__static, "/license.txt"), (err, data) => { - if (err) return licenseText = "See license at https://github.com/rauenzi/BetterDiscordApp/blob/master/LICENSE"; + if (err) return licenseText = "See license at https://github.com/BetterDiscord/BetterDiscord/blob/master/LICENSE"; licenseText = data; }); }