Catch potential undefined result.
This commit is contained in:
parent
edaa270a33
commit
482bf4804d
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,10 @@
|
|||
// SOFTWARE.
|
||||
$(document).ready(function () {
|
||||
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')) {
|
||||
swal({
|
||||
title: 'EULA Acceptance',
|
||||
|
|
Loading…
Reference in a new issue