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

Method loadOverlay

app/src/main/viewManager.ts:218–229  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216 }
217
218 async loadOverlay() {
219 this.wcv.webContents.loadURL('surf-internal://Core/Overlay/overlay.html')
220 // if (is.dev && process.env['ELECTRON_RENDERER_URL']) {
221 // this.wcv.webContents.loadURL(
222 // `${process.env['ELECTRON_RENDERER_URL']}/Overlay/overlay.html?overlayId=${this.opts.overlayId}`
223 // )
224 // } else {
225 // this.wcv.webContents.loadFile(
226 // join(__dirname, `../renderer/Overlay/overlay.html?overlayId=${this.opts.overlayId}`)
227 // )
228 // }
229 }
230
231 changePermanentlyActive(value: boolean) {
232 this.opts.permanentlyActive = value

Callers 1

createOverlayViewMethod · 0.95

Calls 1

loadURLMethod · 0.45

Tested by

no test coverage detected