|
@@ -299,12 +299,12 @@ function _constructOptions(state) {
|
299
|
299
|
// Handle relative URLs, which won't work on mobile.
|
300
|
300
|
const {
|
301
|
301
|
protocol,
|
302
|
|
- hostname,
|
|
302
|
+ host,
|
303
|
303
|
contextRoot
|
304
|
304
|
} = parseURIString(locationURL.href);
|
305
|
305
|
|
306
|
306
|
// eslint-disable-next-line max-len
|
307
|
|
- bosh = `${protocol}//${hostname}${contextRoot || '/'}${bosh.substr(1)}`;
|
|
307
|
+ bosh = `${protocol}//${host}${contextRoot || '/'}${bosh.substr(1)}`;
|
308
|
308
|
}
|
309
|
309
|
|
310
|
310
|
// Append room to the URL's search.
|