Skip to content

Commit

Permalink
update sdk.js check if window io exists before the load external script
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadzeman authored Dec 3, 2024
1 parent aee336d commit 0841e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class EventsSDK {
}

async _onLoginResponse(data) {
if (data.Client) {
if (data.Client && !window.io) {
await loadExternalScript('https://loginapi.voicenter.co.il/monitorAPI/GetSocketClient?v=2.4.0')
}
if (data.URL) {
Expand Down

0 comments on commit 0841e72

Please sign in to comment.