MCPcopy
hub / github.com/kickscondor/fraidycat / start

Function start

src/background.js:14–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12// the browser is open.
13//
14let start = async function () {
15 let local = await storage()
16 Object.assign(local, mixin)
17 console.log(`Started up Fraidycat background script. (${local.id})`)
18 await local.setup()
19 local.server(msg => local[msg.action](msg.data, msg.sender))
20 // local.server(console.log)
21 local.backgroundSetup()
22}
23start()

Callers 1

background.jsFile · 0.85

Calls 2

serverMethod · 0.45
backgroundSetupMethod · 0.45

Tested by

no test coverage detected