Update AppImage

This commit is contained in:
MacRimi
2025-11-03 18:35:16 +01:00
parent a554af939e
commit d787c3caa0
8 changed files with 109 additions and 27 deletions

View File

@@ -188,7 +188,12 @@ export default function Hardware() {
const fetchRealtimeData = async () => {
try {
const apiUrl = `http://${window.location.hostname}:8008/api/gpu/${fullSlot}/realtime`
const { protocol, hostname, port } = window.location
const isStandardPort = port === "" || port === "80" || port === "443"
const apiUrl = isStandardPort
? `/api/gpu/${fullSlot}/realtime`
: `${protocol}//${hostname}:8008/api/gpu/${fullSlot}/realtime`
const response = await fetch(apiUrl, {
method: "GET",