From bc13b14aedb7eb921615044298bf67c8d199a8f7 Mon Sep 17 00:00:00 2001 From: Jamelele <35628223+Jamelele@users.noreply.github.com> Date: Sun, 24 May 2020 21:52:26 +0000 Subject: [PATCH] Send empty payloads instead of 'null' Odd stuff seems to occur and you can't return the callback from lua --- nui/radar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nui/radar.js b/nui/radar.js index 5471414..f1210cf 100644 --- a/nui/radar.js +++ b/nui/radar.js @@ -257,7 +257,7 @@ elements.closeHelp.click( function() { // Sets the action for the "No" button on the new user popup to close the popup elements.closeNewUser.click( function() { setEleVisible( elements.newUser, false ); - sendData( "qsvWatched", null ); + sendData( "qsvWatched", {} ); } ) // Sets the action for the "Yes" button on the new user popup to open the quick start window and load the video @@ -271,7 +271,7 @@ elements.openQsv.click( function() { elements.closeQsv.click( function() { setEleVisible( elements.qsvWindow, false ); loadQuickStartVideo( false ); - sendData( "qsvWatched", null ); + sendData( "qsvWatched", {} ); } ) @@ -1040,7 +1040,7 @@ $( "body" ).find( "button, div" ).each( function( i, obj ) { ------------------------------------------------------------------------------------*/ function closeRemote() { - sendData( "closeRemote", null ); + sendData( "closeRemote", {} ); setEleVisible( elements.plateReaderBox, false ); setEleVisible( elements.uiSettingsBox, false );