( editorDomainRegex: string, RuntimeWorker: new () => Worker, AutocompleteWorker: new () => Worker, staticURLs: StaticURLs, requestHandler: FetchHandler = defaultFetchHandler )
| 319 | } |
| 320 | |
| 321 | export function initialize( |
| 322 | editorDomainRegex: string, |
| 323 | RuntimeWorker: new () => Worker, |
| 324 | AutocompleteWorker: new () => Worker, |
| 325 | staticURLs: StaticURLs, |
| 326 | requestHandler: FetchHandler = defaultFetchHandler |
| 327 | ) { |
| 328 | runtimeStateManager = new RuntimeStateManager( |
| 329 | editorDomainRegex, |
| 330 | RuntimeWorker, |
| 331 | AutocompleteWorker, |
| 332 | requestHandler, |
| 333 | staticURLs |
| 334 | ) |
| 335 | window.addEventListener('message', runtimeStateManager.handleMessage, false) |
| 336 | runtimeStateManager.initialiseWorkerManagers() |
| 337 | } |
nothing calls this directly
no outgoing calls
no test coverage detected