Only wrap in <iframe>
on the web
This commit is contained in:
parent
0ec9974d77
commit
f3b79b0d36
|
@ -74,7 +74,7 @@ export class WebWorkerExtensionHost extends Disposable implements IExtensionHost
|
|||
|
||||
public async start(): Promise<IMessagePassingProtocol> {
|
||||
if (!this._protocolPromise) {
|
||||
if (WRAP_IN_IFRAME) {
|
||||
if (WRAP_IN_IFRAME && platform.isWeb) {
|
||||
this._protocolPromise = this._startInsideIframe();
|
||||
} else {
|
||||
this._protocolPromise = this._startOutsideIframe();
|
||||
|
|
Loading…
Reference in a new issue