MCPcopy Index your code
hub / github.com/witheve/Eve / onError

Method onError

src/client.ts:219–229  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217 }
218
219 onError() {
220 this.localControl = true;
221 this.localEve = true;
222
223 if(!this.ide) {
224 let path = (window.location.hash || "").slice(1) || "/examples/quickstart.eve";;
225 this._initProgram({config: {runtimeOwner: Owner.client, controlOwner: Owner.client, editor: true, path}, path: (window.location.hash || "").slice(1) || "/examples/quickstart.eve", code: "", workspaces: window["_workspaceCache"]});
226 } else {
227 this.injectNotice("error", "Unexpectedly disconnected from the server. Please refresh the page.");
228 }
229 }
230
231 onOpen() {
232 this.socketSend(JSON.stringify({type: "init", url: location.pathname, hash: location.hash.substring(1)}))

Callers 1

constructorMethod · 0.95

Calls 2

_initProgramMethod · 0.95
injectNoticeMethod · 0.95

Tested by

no test coverage detected