chore: last frontend style nits — http case in common.js, setTimeout wrappers
- common.js fetchStateFile: 'HTTP' -> 'http' — last uppercase instance in the frontend (tabs.js, app.js, logs.js already fixed in prior PRs) - tabs.js: two redundant arrow wrappers in setTimeout dropped — setTimeout(() => f(), N) -> setTimeout(f, N) where f takes no args
This commit is contained in:
parent
db50da570a
commit
07e729ae24
2 changed files with 3 additions and 3 deletions
|
|
@ -387,7 +387,7 @@ export const Panel = (() => {
|
|||
async function fetchStateFile(path) {
|
||||
const resp = await fetch('/api/state-file?path=' + encodeURIComponent(path));
|
||||
const text = await resp.text();
|
||||
if (!resp.ok) throw new Error(text || ('HTTP ' + resp.status));
|
||||
if (!resp.ok) throw new Error(text || ('http ' + resp.status));
|
||||
return text;
|
||||
}
|
||||
// A 2-tab file preview: a "rendered" tab (default) + a raw-text tab.
|
||||
|
|
|
|||
Loading…
Reference in a new issue