annotate src/bootstrap-feature-extraction-worker.js @ 74:2c3fe51ad1f0
Wire up methods in the FeatureExtractionService for offloading to the worker and consume them from the feature extraction menu.
author |
Lucas Thompson <dev@lucas.im> |
date |
Wed, 18 Jan 2017 10:19:35 +0000 |
parents |
d3abd81e8ab6 |
children |
8f2b2aed0df1 |
rev |
line source |
dev@40
|
1 /**
|
dev@40
|
2 * Created by lucas on 01/12/2016.
|
dev@40
|
3 */
|
dev@40
|
4 let window = {};
|
dev@40
|
5 importScripts('inline.bundle.js'); // provides webpackJsonp
|
dev@40
|
6 const webpackJsonp = window['webpackJsonp'];
|
dev@40
|
7 importScripts('scripts.bundle.js'); // needs webpackJsonp, hence above - provides require
|
dev@40
|
8
|
dev@73
|
9 new (require('feature-extraction-worker'))(self, requirejs);
|