diff --git a/R/custom_disconnect_message.R b/R/custom_disconnect_message.R index c26ad0f..51c4c17 100644 --- a/R/custom_disconnect_message.R +++ b/R/custom_disconnect_message.R @@ -123,10 +123,22 @@ custom_disconnect_message <- function( " $(document).on('shiny:disconnected', function(event) {", " $('#custom-disconnect-dialog').show();", " $('#ss-overlay').show();", - " })", + " });", "});" ) ), + tags$head( + tags$style( + htmltools::HTML( + " + /* Hide the default Shiny disconnect message */ + #shiny-disconnected-overlay { + display: none !important; + } + " + ) + ) + ), tags$div( id = "custom-disconnect-dialog", style = "display: none !important;",