PageSourceSearch

https://viewspace.org/assets/network-9b1ead72de03b215741ce52f520d98526ca98c5ccd7a13a8810be58bf9342f58.js

js viewspace.org collected 2026-09-24 09:46:57 UTC 443 bytes, 13 lines download raw bytes

1// Network helpers used by local_player and other scripts
2export async function fetchWithTimeout(resource, { timeout = 10000, ...options } = {}) {
3  const controller = new AbortController();
4  const id = setTimeout(() => controller.abort(), timeout);
5  try {
6    const response = await fetch(resource, { ...options, signal: controller.signal });
7    return response;
8  } finally {
9    clearTimeout(id);
10  }
11}
12
13export default fetchWithTimeout;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.