Merge pull request #1518 from player-03/single_threaded_async
Add virtual threads and web workers.
This commit is contained in:
@@ -159,6 +159,10 @@ class HTML5Platform extends PlatformTarget
|
||||
if (dependency.embed && StringTools.endsWith(dependency.path, ".js") && FileSystem.exists(dependency.path))
|
||||
{
|
||||
var script = File.getContent(dependency.path);
|
||||
if (!dependency.webWorker)
|
||||
{
|
||||
script = 'if(typeof window != "undefined") {\n' + script + "\n}";
|
||||
}
|
||||
context.embeddedLibraries.push(script);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user