| 18 | //--------------------------------------------------------------------- |
| 19 | |
| 20 | class WebworkerRuntimeClient extends RuntimeClient { |
| 21 | |
| 22 | constructor(showIDE) { |
| 23 | let dbs = { |
| 24 | "http": new HttpDatabase() |
| 25 | } |
| 26 | if(showIDE) { |
| 27 | dbs["view"] = new BrowserViewDatabase(); |
| 28 | dbs["editor"] = new BrowserEditorDatabase(); |
| 29 | dbs["inspector"] = new BrowserInspectorDatabase(); |
| 30 | } |
| 31 | super(dbs); |
| 32 | } |
| 33 | |
| 34 | send(json) { |
| 35 | postMessage(json, undefined); |
| 36 | } |
| 37 | |
| 38 | } |
| 39 | |
| 40 | export var responder: WebworkerRuntimeClient; |
| 41 |
nothing calls this directly
no outgoing calls
no test coverage detected