Send empty payloads instead of 'null'

Odd stuff seems to occur and you can't return the callback from lua
This commit is contained in:
Jamelele
2020-05-24 21:52:26 +00:00
committed by Jamelele
parent 285cee53a0
commit bc13b14aed

View File

@@ -257,7 +257,7 @@ elements.closeHelp.click( function() {
// Sets the action for the "No" button on the new user popup to close the popup // Sets the action for the "No" button on the new user popup to close the popup
elements.closeNewUser.click( function() { elements.closeNewUser.click( function() {
setEleVisible( elements.newUser, false ); 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 // 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() { elements.closeQsv.click( function() {
setEleVisible( elements.qsvWindow, false ); setEleVisible( elements.qsvWindow, false );
loadQuickStartVideo( false ); loadQuickStartVideo( false );
sendData( "qsvWatched", null ); sendData( "qsvWatched", {} );
} ) } )
@@ -1040,7 +1040,7 @@ $( "body" ).find( "button, div" ).each( function( i, obj ) {
------------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------------*/
function closeRemote() function closeRemote()
{ {
sendData( "closeRemote", null ); sendData( "closeRemote", {} );
setEleVisible( elements.plateReaderBox, false ); setEleVisible( elements.plateReaderBox, false );
setEleVisible( elements.uiSettingsBox, false ); setEleVisible( elements.uiSettingsBox, false );