core: Don't expect Strophe.BOSH to be defined
This commit is contained in:
parent
bf4b3efa5b
commit
1e44f45a68
@ -399,7 +399,7 @@ export const api = _converse.api = {
|
||||
if (type.toLowerCase() === 'websocket') {
|
||||
return _converse.connection._proto instanceof Strophe.Websocket;
|
||||
} else if (type.toLowerCase() === 'bosh') {
|
||||
return _converse.connection._proto instanceof Strophe.Bosh;
|
||||
return Strophe.BOSH && _converse.connection._proto instanceof Strophe.Bosh;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user