FIX: Use more specific selector for header (#11185)

This commit is contained in:
Penar Musaraj 2020-11-10 11:53:56 -05:00 committed by GitHub
parent 0b7f43fba8
commit fc4910b556
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ export default {
},
updateAppBackground() {
later(() => {
const header = document.querySelectorAll(".d-header")[0];
const header = document.querySelector(".d-header-wrap .d-header");
if (header) {
const styles = window.getComputedStyle(header);
postRNWebviewMessage("headerBg", styles.backgroundColor);