diff --git a/floorp_downloader/floorp_downloader.mjs b/floorp_downloader/floorp_downloader.mjs index 08524e5..6b637b5 100644 --- a/floorp_downloader/floorp_downloader.mjs +++ b/floorp_downloader/floorp_downloader.mjs @@ -7,10 +7,12 @@ if (process.env.GITHUB_TOKEN) { headers.Authorization = `Bearer ${process.env.GITHUB_TOKEN}`; } -const resultObj = await got({ - url: "https://api.github.com/repos/Floorp-Projects/Floorp/releases/latest", - headers -}).json(); +const resultObj = await got( + "https://api.github.com/repos/Floorp-Projects/Floorp/releases/latest", + { + headers + } +).json(); let validAsset; const [os, arch] = process.argv.slice(2); @@ -48,4 +50,4 @@ if (name.endsWith(".tar.bz2")) { outputFilename = "floorp-package"; } -fs.writeFileSync(outputFilename, binary); \ No newline at end of file +fs.writeFileSync(outputFilename, binary);