Catch potential undefined result.
This commit is contained in:
parent
edaa270a33
commit
482bf4804d
|
@ -19,6 +19,10 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
Socket.on('console', function (data) {
|
Socket.on('console', function (data) {
|
||||||
|
if (typeof data === 'undefined' || typeof data.line === 'undefined') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (~data.line.indexOf('You need to agree to the EULA in order to run the server')) {
|
if (~data.line.indexOf('You need to agree to the EULA in order to run the server')) {
|
||||||
swal({
|
swal({
|
||||||
title: 'EULA Acceptance',
|
title: 'EULA Acceptance',
|
||||||
|
|
Loading…
Reference in New Issue