forked from Berry-Dash/launcher
1.5.3
This commit is contained in:
@@ -166,7 +166,7 @@ export default function Installs () {
|
||||
: info.category == category)
|
||||
)
|
||||
})
|
||||
.map((entry, i) => (
|
||||
.map(entry => (
|
||||
<div
|
||||
key={entry}
|
||||
className={`downloads-entry ${
|
||||
|
||||
@@ -329,6 +329,12 @@ export default function RootLayout ({
|
||||
)
|
||||
)
|
||||
|
||||
try {
|
||||
await axios.get(
|
||||
'https://games.lncvrt.xyz/api/launcher/download?id=' + info.id
|
||||
)
|
||||
} catch {}
|
||||
|
||||
const res = await invoke<string>('download', {
|
||||
url: info.downloadUrl,
|
||||
name: info.id,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
'use client'
|
||||
|
||||
import { useEffect, useState } from 'react'
|
||||
import { useEffect } from 'react'
|
||||
import './Installs.css'
|
||||
import { useGlobal } from './GlobalProvider'
|
||||
import Link from 'next/link'
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
readTextFile,
|
||||
writeFile
|
||||
} from '@tauri-apps/plugin-fs'
|
||||
import { VersionsConfig, VersionsConfigData } from '../types/VersionsConfig'
|
||||
import { VersionsConfig } from '../types/VersionsConfig'
|
||||
|
||||
export async function readNormalConfig (): Promise<NormalConfig> {
|
||||
const version = await app.getVersion()
|
||||
|
||||
Reference in New Issue
Block a user