Disable adoptedStyleSheets in dev (#4474)

This commit is contained in:
Bram Kragten 2020-01-15 09:25:17 +01:00 committed by GitHub
parent 21ae483dc9
commit da25701dca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,6 +70,9 @@ const connProm = async (auth) => {
};
if (__DEV__) {
// Remove adoptedStyleSheets so style inspector works on shadow DOM.
// @ts-ignore
delete Document.prototype.adoptedStyleSheets;
performance.mark("hass-start");
}
window.hassConnection = authProm().then(connProm);