Browse Source

bug: Fixed crash when receiving messages before window.player exists

tags/v0.11.0.1^2
Shaun 1 year ago
parent
commit
78cefcb225
2 changed files with 6 additions and 0 deletions
  1. +3
    -0
      src/client/ui/templates/messages/messages.js
  2. +3
    -0
      src/client/ui/templates/party/party.js

+ 3
- 0
src/client/ui/templates/messages/messages.js View File

@@ -191,6 +191,9 @@ define([
},

onGetMessages: function (e) {
if (!window.player)
return;
let messages = e.messages;
if (!messages.length)
messages = [messages];


+ 3
- 0
src/client/ui/templates/party/party.js View File

@@ -39,6 +39,9 @@ define([
},

onGetConnectedPlayer: function (msg) {
if (!window.player)
return;

const { party } = this;
const { player: { serverId: playerId, zoneId: playerZone } } = window;



Loading…
Cancel
Save