diff --git a/FrontSocket/FrontendServices.cs b/FrontSocket/FrontendServices.cs index dd084804..c08e3f0f 100644 --- a/FrontSocket/FrontendServices.cs +++ b/FrontSocket/FrontendServices.cs @@ -321,6 +321,7 @@ namespace Swarmops.Frontend.Socket private void BroadcastGuidProgress(Organization organization, string guid, int progress) { JObject json = new JObject(); + json["MessageType"] = "ProgressUpdate"; json["Guid"] = guid; json["Progress"] = progress; diff --git a/Site/Scripts/Swarmops-v5.js b/Site/Scripts/Swarmops-v5.js index 037d7793..3afb4083 100644 --- a/Site/Scripts/Swarmops-v5.js +++ b/Site/Scripts/Swarmops-v5.js @@ -116,7 +116,7 @@ function _masterInitializeSocket(authenticationTicket) { } } else if (message.MessageType == "SandboxUpdate") { - if (odoLocalParticipation != undefined) { // Real ugly accessing specific page elements here, but it's temporary + if (window["odoLocalParticipation"] != undefined) { // Real ugly accessing specific page elements here, but it's temporary odoLocalParticipation.innerHTML = message.Local; odoGlobalParticipation.innerHTML = 12345678 + message.Local * 5; odoActiveParticipation.innerHTML = 123412 + message.Local * 5;