From 4ec8391b6f14196f59d8b93cda1cc9ffa69516ca Mon Sep 17 00:00:00 2001 From: Jamelele <35628223+Jamelele@users.noreply.github.com> Date: Sun, 24 May 2020 15:22:52 +0000 Subject: [PATCH] Send nui requests over HTTPS --- nui/radar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nui/radar.js b/nui/radar.js index 3a31ea0..a37e4af 100644 --- a/nui/radar.js +++ b/nui/radar.js @@ -622,7 +622,7 @@ function displayKeyLock( state ) // This function is used to send data back through to the LUA side function sendData( name, data ) { - $.post( "http://" + resourceName + "/" + name, JSON.stringify( data ), function( datab ) { + $.post( "https://" + resourceName + "/" + name, JSON.stringify( data ), function( datab ) { if ( datab != "ok" ) { console.log( datab ); } @@ -1033,7 +1033,7 @@ $( "body" ).find( "button, div" ).each( function( i, obj ) { ------------------------------------------------------------------------------------*/ function closeRemote() { - sendData( "closeRemote", null ); + sendData( "closeRemote", {} ); setEleVisible( elements.plateReaderBox, false ); setEleVisible( elements.uiSettingsBox, false );