Fix embeded transport. (#7326)
This commit is contained in:
parent
1d9206735b
commit
5713bb2099
@ -66,6 +66,8 @@ class FrameSecureApi extends SecureApi {
|
||||
() => transport,
|
||||
() => 'http:'
|
||||
);
|
||||
|
||||
this._isConnected = false;
|
||||
}
|
||||
|
||||
connect () {
|
||||
@ -73,6 +75,7 @@ class FrameSecureApi extends SecureApi {
|
||||
this.emit('connecting');
|
||||
// Fire connected event with some delay.
|
||||
setTimeout(() => {
|
||||
this._isConnected = true;
|
||||
this.emit('connected');
|
||||
});
|
||||
}
|
||||
@ -86,7 +89,7 @@ class FrameSecureApi extends SecureApi {
|
||||
}
|
||||
|
||||
isConnected () {
|
||||
return true;
|
||||
return this._isConnected;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ module.exports = {
|
||||
cache: !isProd,
|
||||
devtool: isProd
|
||||
? false
|
||||
: '#eval',
|
||||
: isEmbed ? '#source-map' : '#eval',
|
||||
context: path.join(__dirname, '../src'),
|
||||
entry,
|
||||
output: {
|
||||
|
Loading…
Reference in New Issue
Block a user