Skip to content

Commit

Permalink
hide shiny disconnect message (#89)
Browse files Browse the repository at this point in the history
* hide shiny disconnect message

* add package reference
  • Loading branch information
oadetayo authored Jan 20, 2025
1 parent 2de5915 commit 29d7d51
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion R/custom_disconnect_message.R
Original file line number Diff line number Diff line change
Expand Up @@ -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;",
Expand Down

0 comments on commit 29d7d51

Please sign in to comment.