This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
gitlord
/
isleward
mirror of
https://gitlab.com/Isleward/isleward.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
203
Wiki
Activity
Browse Source
bug: Fixed crash when receiving messages before window.player exists
tags/v0.11.0.1^2
Shaun
2 years ago
parent
2da0208563
commit
78cefcb225
2 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
src/client/ui/templates/messages/messages.js
+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;
Write
Preview
Loading…
Cancel
Save