annotate src/bootstrap-feature-extraction-worker.js @ 482:f3a8e2284a87
Remove console log and tighten object member check.
| author |
Lucas Thompson <dev@lucas.im> |
| date |
Fri, 21 Jul 2017 17:12:11 +0100 |
| parents |
103cc6f63da1 |
| children |
|
| 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@93
|
5 importScripts('/inline.bundle.js'); // provides webpackJsonp
|
|
dev@40
|
6 const webpackJsonp = window['webpackJsonp'];
|
|
dev@93
|
7 importScripts('/scripts.bundle.js'); // needs webpackJsonp, hence above - provides RequireJS
|
|
dev@310
|
8 window = null; // now we have a reference to webpackJsonp, get rid of window
|
|
dev@93
|
9 importScripts('/polyfills.bundle.js'); // provides the compiled FeatureExtractionWorker
|
|
dev@40
|
10
|
|
dev@73
|
11 new (require('feature-extraction-worker'))(self, requirejs);
|