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() {
|
||||
postRNWebviewMessage(
|
||||
"headerBg",
|
||||
document.documentElement.style.getPropertyValue("--header_background")
|
||||
);
|
||||
const header = document.querySelector(".d-header-wrap .d-header");
|
||||
if (header) {
|
||||
postRNWebviewMessage(
|
||||
"headerBg",
|
||||
window.getComputedStyle(header).backgroundColor
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@action
|
||||
|
|
Loading…
Reference in New Issue