mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-20 04:13:39 +00:00
Merge pull request #2719 from overleaf/jpa-custom-wsurl-for-beta-users
[frontend] ConnectionManager: add support for ie11 GitOrigin-RevId: ab1280f8da68fa87c266463e617b0a84a48065ce
This commit is contained in:
parent
d6fa1b1ca3
commit
1a09965503
1 changed files with 10 additions and 1 deletions
|
@ -101,7 +101,16 @@ define([], function() {
|
|||
|
||||
// initial connection attempt
|
||||
this.updateConnectionManagerState('connecting')
|
||||
const parsedURL = new URL(this.wsUrl || '/socket.io', window.location)
|
||||
let parsedURL
|
||||
try {
|
||||
parsedURL = new URL(this.wsUrl || '/socket.io', window.location)
|
||||
} catch (e) {
|
||||
// hello IE11
|
||||
parsedURL = {
|
||||
origin: null,
|
||||
pathname: '/socket.io'
|
||||
}
|
||||
}
|
||||
this.ide.socket = io.connect(
|
||||
parsedURL.origin,
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue