@@ -46,12 +46,12 @@ try {
4646} catch ( e ) { }
4747
4848
49- function openInterface ( onCancel , customLogo ) {
49+ function openInterface ( onCancel , customLogo , closeOnBackgroundClick ) {
5050 document . body . classList . add ( HIDE_ROBLOX_UI_CLASS ) ;
5151 showLoadingOverlay ( ( ) => {
5252 closeInterface ( ) ;
5353 if ( onCancel ) onCancel ( ) ;
54- } , customLogo ) ;
54+ } , customLogo , closeOnBackgroundClick ) ;
5555}
5656
5757function closeInterface ( force = false ) {
@@ -432,7 +432,7 @@ function initializeJoinDialogEnhancer() {
432432 }
433433 } ) ;
434434
435- chrome . storage . local . get ( { whatamIJoiningEnabled : true , AlwaysGetInfo : false , customLogoData : null , revertLogo : false } , ( settings ) => {
435+ chrome . storage . local . get ( { whatamIJoiningEnabled : true , AlwaysGetInfo : false , customLogoData : null , revertLogo : false , closeUiByClickingTheBackground : true } , ( settings ) => {
436436
437437 const processGameLaunchData = async ( gameLaunchFrame ) => {
438438 gameLaunchElementExists = true ;
@@ -446,7 +446,7 @@ function initializeJoinDialogEnhancer() {
446446
447447 const logoToUse = ( settings . revertLogo === true && settings . customLogoData ) ? settings . customLogoData : null ;
448448
449- openInterface ( null , logoToUse ) ;
449+ openInterface ( null , logoToUse , settings . closeUiByClickingTheBackground ) ;
450450
451451 let urlParams ;
452452 let placeId ;
0 commit comments