Skip to content

Commit ec1ab35

Browse files
committed
Fixing favicon bug
1 parent 0427f28 commit ec1ab35

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
66
### Changed
77
- Unify the core Dash packages (dash, dashCoreComponents, dashHtmlComponents, dashTable) for streamlined maintenance and accessibility. The namespaces of these packages will be combined under the `dash` namespace, and all artifacts from the ancillary dash packages will be included with Dash for R. [#243](https://github.com/plotly/dashr/pull/243)
88

9+
### Fixed
10+
- Minor fix for favicon issue continued from [#240](https://github.com/plotly/dashr/pull/240) (for more details, see [#243](https://github.com/plotly/dashR/pull/243#issuecomment-842813526)).
11+
912
## [0.9.1] - 2020-11-16
1013
### Fixed
1114
- A regression which prevented favicons from displaying properly has been resolved, and a default Dash favicon is now supplied when none is provided in the `assets` directory. [#240](https://github.com/plotly/dashr/pull/240)

R/dash.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,8 @@ Dash <- R6::R6Class(
500500
"/favicon.ico")
501501

502502
# If custom favicon is not present, get the path for the default Dash favicon
503-
if (is.na(names(asset_path))) {
504-
asset_path <- system.file("extdata", "favicon.ico", package = "dash")
503+
if (is.na(names(asset_path)) || is.null(asset_path)) {
504+
asset_path <- setNames(system.file("extdata", "favicon.ico", package = "dash"), c("/favicon.ico"))
505505
}
506506

507507
file_handle <- file(asset_path, "rb")

0 commit comments

Comments
 (0)