mirror of
https://github.com/discourse/discourse.git
synced 2025-02-09 12:54:56 +00:00
UX: Fix modal header background color in webview (#29717)
This commit is contained in:
parent
d97d48ead1
commit
4c1af2f414
@ -21,11 +21,14 @@ export default class FooterNav extends Component {
|
||||
}
|
||||
|
||||
_modalOff() {
|
||||
const header = document.querySelector(".d-header-wrap .d-header");
|
||||
if (header) {
|
||||
postRNWebviewMessage(
|
||||
"headerBg",
|
||||
document.documentElement.style.getPropertyValue("--header_background")
|
||||
window.getComputedStyle(header).backgroundColor
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@action
|
||||
setDiscourseHubHeaderBg(hasAnActiveModal) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user