Add files via upload

This commit is contained in:
James 2025-10-03 23:25:34 -07:00 committed by GitHub
parent 074b96ed78
commit 1584723c30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -418,7 +418,7 @@
document.getElementById('y').textContent = new Date().getFullYear();
// === CONFIG (same API + servers as your current page) ===
const API = 'http://10.1.10.64:5317/api/status';
const API = 'https://api.oblistudios.com/api/status';
const SERVERS = [
{ name: 'The Island (PvP)', host: '10.1.10.64', port: 27015 },

View File

@ -724,7 +724,7 @@
let remaining = 12;
async function refreshRemaining() {
try {
const r = await fetch('/api/inventory'); const j = await r.json();
const r = await fetch('http://10.1.10.195:3000/api/inventory', { credentials: 'include' }); const j = await r.json();
remaining = j.remaining;
document.querySelectorAll('[data-remaining] .remN').forEach(s => s.textContent = remaining);
// Disable all three server buttons if none left: