mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
refactor(checksum): streamline checksum handling and improve UI transitions
- Removed GITHUB_TOKEN from workflow as it's no longer needed. - Enhanced ButtonCard component with smoother transitions for checksum display. - Cleaned up unused styles related to checksum interactions.
This commit is contained in:
parent
3816206f6b
commit
79d4aeb39b
3 changed files with 3 additions and 25 deletions
|
@ -3,13 +3,9 @@
|
|||
* Returns a mapping from filename to checksum.
|
||||
*/
|
||||
export async function getChecksums() {
|
||||
const token = import.meta.env.GITHUB_TOKEN;
|
||||
if (!token) throw new Error('GITHUB_TOKEN is not set in environment variables');
|
||||
|
||||
const res = await fetch('https://api.github.com/repos/zen-browser/desktop/releases/latest', {
|
||||
headers: {
|
||||
'Accept': 'application/vnd.github+json',
|
||||
'Authorization': `Bearer ${token}`,
|
||||
'X-GitHub-Api-Version': '2022-11-28',
|
||||
'User-Agent': 'zen-browser-checksum-fetcher',
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue