MCPcopy
hub / github.com/garrytan/gstack / getLoadedHtml

Method getLoadedHtml

browse/src/tab-session.ts:200–203  ·  view source on GitHub ↗

Get stored HTML + waitUntil for state replay. Returns null if no load-html happened.

()

Source from the content-addressed store, hash-verified

198
199 /** Get stored HTML + waitUntil for state replay. Returns null if no load-html happened. */
200 getLoadedHtml(): { html: string; waitUntil?: SetContentWaitUntil } | null {
201 if (this.loadedHtml === null) return null;
202 return { html: this.loadedHtml, waitUntil: this.loadedHtmlWaitUntil };
203 }
204
205 /** Clear stored HTML. Called BEFORE goto/back/forward/reload navigation. */
206 clearLoadedHtml(): void {

Callers 1

saveStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected