We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
importScripts
1 parent 9f440e3 commit 743a00aCopy full SHA for 743a00a
lib/JsonpMainTemplate.runtime.js
@@ -10,6 +10,16 @@ module.exports = function() {
10
}
11
12
function hotDownloadUpdateChunk(chunkId) { // eslint-disable-line no-unused-vars
13
+ if(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {
14
+ // In a web worker
15
+ try {
16
+ importScripts($require$.p + $hotChunkFilename$);
17
+ } catch (e) {
18
+ console.warn(e);
19
+ }
20
+ return;
21
22
+
23
var head = document.getElementsByTagName("head")[0];
24
var script = document.createElement("script");
25
script.type = "text/javascript";
0 commit comments