Commit 1e44f45a authored by JC Brand's avatar JC Brand

core: Don't expect Strophe.BOSH to be defined

parent bf4b3efa
......@@ -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;
}
}
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment