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

Function openBrowser

src/lib/run.js:534–543  ·  view source on GitHub ↗

* Opens the preview in browser

()

Source from the content-addressed store, hash-verified

532 * Opens the preview in browser
533 */
534 function openBrowser() {
535 console.count("openBrowser");
536 const src = `http://localhost:${port}/${filename}`;
537 if (target === "browser") {
538 system.openInBrowser(src);
539 return;
540 }
541
542 browser.open(src, isConsole);
543 }
544}
545
546export default run;

Callers 1

onErrorFunction · 0.85

Calls 1

openInBrowserMethod · 0.65

Tested by

no test coverage detected