Skip to content

Commit 482bf48

Browse files
committed
Catch potential undefined result.
1 parent edaa270 commit 482bf48

File tree

1 file changed

+4
-0
lines changed
  • public/themes/pterodactyl/js/plugins/minecraft

1 file changed

+4
-0
lines changed

public/themes/pterodactyl/js/plugins/minecraft/eula.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
// SOFTWARE.
2020
$(document).ready(function () {
2121
Socket.on('console', function (data) {
22+
if (typeof data === 'undefined' || typeof data.line === 'undefined') {
23+
return;
24+
}
25+
2226
if (~data.line.indexOf('You need to agree to the EULA in order to run the server')) {
2327
swal({
2428
title: 'EULA Acceptance',

0 commit comments

Comments
 (0)