MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / openApp

Function openApp

webiojs/src/utils.ts:132–139  ·  view source on GitHub ↗
(name: string, new_window: boolean)

Source from the content-addressed store, hash-verified

130// name: app名称
131// new_window: 是否在新窗口打开
132export function openApp(name: string, new_window: boolean) {
133 let url = new URL(window.location.href);
134 url.searchParams.set("app", name);
135 if (new_window)
136 window.open(url.href);
137 else
138 window.location.href = url.href;
139}
140
141
142export function error_alert(text: string, duration: number = 1.5) {

Callers

nothing calls this directly

Calls 1

openMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…