Spaces:
Running on Zero
Running on Zero
Preserve same-origin HF browser session for API requests
Browse files- RELEASE_MANIFEST.json +1 -1
- client.js +1 -1
RELEASE_MANIFEST.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
| 10 |
"assets/formula_template.json": "80f745df82bb7be45af52785fd582460bcddc63c5a4e1d8375d85b3122db4c6b",
|
| 11 |
"bin/altd-sim": "2f2f2144ae14b0ef599ca8510f95712da00243c6875881491d384b394e7499f7",
|
| 12 |
"bin/extract_saved_track": "3a7733c45b4301a786fcbfe92660a1c484749272da5f608d62f34878bd4ff31a",
|
| 13 |
-
"client.js": "
|
| 14 |
"delivery.py": "4f5a4e45df92e5cbfdef6eb449ede9ba26217fe24da376fafddae5cbbb73847a",
|
| 15 |
"index.html": "cf4c0670c81184f8ea2726041457ae3cecc6c79b9030a41fe545b1bc503f0a47",
|
| 16 |
"requirements.txt": "dbdedd8a6f30e16dc41bc3e210c1a936f679655420075f8f89bdd40bdd03f91b",
|
|
|
|
| 10 |
"assets/formula_template.json": "80f745df82bb7be45af52785fd582460bcddc63c5a4e1d8375d85b3122db4c6b",
|
| 11 |
"bin/altd-sim": "2f2f2144ae14b0ef599ca8510f95712da00243c6875881491d384b394e7499f7",
|
| 12 |
"bin/extract_saved_track": "3a7733c45b4301a786fcbfe92660a1c484749272da5f608d62f34878bd4ff31a",
|
| 13 |
+
"client.js": "46db301e913e1dd495ea453624d4111965344b7df27770672c4d416ce5c99c64",
|
| 14 |
"delivery.py": "4f5a4e45df92e5cbfdef6eb449ede9ba26217fe24da376fafddae5cbbb73847a",
|
| 15 |
"index.html": "cf4c0670c81184f8ea2726041457ae3cecc6c79b9030a41fe545b1bc503f0a47",
|
| 16 |
"requirements.txt": "dbdedd8a6f30e16dc41bc3e210c1a936f679655420075f8f89bdd40bdd03f91b",
|
client.js
CHANGED
|
@@ -23,7 +23,7 @@ function saveLocal() {
|
|
| 23 |
$('saveLocal').onclick=saveLocal;
|
| 24 |
$('forgetLocal').onclick=()=>{localResult=null;buttons();say('Browser result discarded. Downloaded files are unaffected.');};
|
| 25 |
async function request(path, options = {}) {
|
| 26 |
-
const response = await fetch(path, {cache:'no-store', credentials:'
|
| 27 |
if (!response.ok) throw new Error(response.status === 404 ? 'Result unavailable or expired.' : 'Request failed ('+response.status+').');
|
| 28 |
return response;
|
| 29 |
}
|
|
|
|
| 23 |
$('saveLocal').onclick=saveLocal;
|
| 24 |
$('forgetLocal').onclick=()=>{localResult=null;buttons();say('Browser result discarded. Downloaded files are unaffected.');};
|
| 25 |
async function request(path, options = {}) {
|
| 26 |
+
const response = await fetch(path, {...options, cache:'no-store', credentials:'same-origin'});
|
| 27 |
if (!response.ok) throw new Error(response.status === 404 ? 'Result unavailable or expired.' : 'Request failed ('+response.status+').');
|
| 28 |
return response;
|
| 29 |
}
|