mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 21:23:45 +01: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:
@@ -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,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user