MCPcopy Create free account
hub / github.com/deta/surf / loadViewURL

Method loadViewURL

app/src/main/viewManager.ts:686–695  ·  view source on GitHub ↗
(id: string, url: string)

Source from the content-addressed store, hash-verified

684 }
685
686 async loadViewURL(id: string, url: string) {
687 log.log('[main] webcontentsview-loadURL: loading URL', url, 'for view with id', id)
688 const view = this.views.get(id)
689 if (!view) {
690 log.warn('[main] webcontentsview-loadURL: no view found with id', id)
691 return
692 }
693
694 await view.loadURL(url)
695 }
696
697 addChildView(view: WCView) {
698 this.window.contentView.addChildView(view.wcv)

Callers

nothing calls this directly

Calls 4

logMethod · 0.80
warnMethod · 0.80
getMethod · 0.65
loadURLMethod · 0.45

Tested by

no test coverage detected