MCPcopy Create free account
hub / github.com/MathMan05/Fermi / constructor

Method constructor

src/webpage/settings.ts:1347–1358  ·  view source on GitHub ↗
(
		name: string,
		owner: Buttons | Options | Form | Float,
		{ltr = false, noSubmit = false, vsmaller = false} = {},
	)

Source from the content-addressed store, hash-verified

1345 };
1346 }
1347 static picker?: InstancePicker;
1348 static genDataList() {
1349 const json = getInstances();
1350
1351 const [stringURLMap, stringURLsMap] = getStringURLMapPair();
1352 if (!json) {
1353 instancefetch.then(this.genDataList.bind(this));
1354 return;
1355 }
1356
1357 if (json.length !== 0) {
1358 let name =
1359 this.picker?.instance || new URLSearchParams(window.location.search).get("instance");
1360 if (!name) {
1361 const l = localStorage.getItem("instanceinfo");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected