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

Method hideView

app/src/main/viewManager.ts:785–799  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

783 }
784
785 hideView(id: string) {
786 log.log('[main] webcontentsview-hide: hiding view with id', id)
787 const view = this.views.get(id)
788 if (!view) {
789 log.warn('[main] webcontentsview-hide: no view found with id', id)
790 return
791 }
792
793 try {
794 this.removeChildView(view)
795 log.log('[main] webcontentsview-hide: view with id', id, 'hidden successfully')
796 } catch (e) {
797 log.warn('[main] Could not hide WebContentsView', e)
798 }
799 }
800
801 hideAllViews(opts?: { hidePermanentlyActive?: boolean }) {
802 const options = {

Callers 1

attachIPCEventsMethod · 0.95

Calls 4

removeChildViewMethod · 0.95
logMethod · 0.80
warnMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected