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