Mercurial > hg > ugly-duckling
view 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 |
line wrap: on
line source
/** * Created by lucas on 01/12/2016. */ let window = {}; importScripts('inline.bundle.js'); // provides webpackJsonp const webpackJsonp = window['webpackJsonp']; importScripts('scripts.bundle.js'); // needs webpackJsonp, hence above - provides require new (require('feature-extraction-worker'))(self, requirejs);