mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-10 10:23:46 +02:00
Catch potential undefined result.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user