PageSourceSearch

https://demo.branchingtales.ch/script/modules/dispatch.js

js branchingtales.ch collected 2026-09-25 22:30:48 UTC 435 bytes, 18 lines download raw bytes

1import { api } from "./api.js";
2
3export async function dispatch(action) {
4	try {
5		const response = await api.sendAction(action);
6		const text = await response.text();
7		console.log("RAW RESPONSE:", text);
8		const data = JSON.parse(text);
9		if (!data.success) {
10			console.error("Action failed:", action);
11			return null;
12		}
13		return data;
14	} catch (err) {
15		console.error("Dispatch error:", err);
16		return null;
17	}
18}

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.