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