MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / start

Function start

src/lib/run.js:148–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146 }
147
148 function start() {
149 if (target === "browser") {
150 system.isPowerSaveMode((res) => {
151 if (res) {
152 alert(strings.info, strings["powersave mode warning"]);
153 } else {
154 startServer();
155 }
156 }, startServer);
157 } else {
158 startServer();
159 }
160 }
161
162 function startServer() {
163 webServer?.stop();

Callers 4

runFunction · 0.70
nextFunction · 0.70
startConsoleFunction · 0.70
onErrorFunction · 0.70

Calls 3

alertFunction · 0.85
startServerFunction · 0.85
isPowerSaveModeMethod · 0.65

Tested by

no test coverage detected