Disable adoptedStyleSheets in dev (#4474)
This commit is contained in:
@@ -70,6 +70,9 @@ const connProm = async (auth) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (__DEV__) {
|
if (__DEV__) {
|
||||||
|
// Remove adoptedStyleSheets so style inspector works on shadow DOM.
|
||||||
|
// @ts-ignore
|
||||||
|
delete Document.prototype.adoptedStyleSheets;
|
||||||
performance.mark("hass-start");
|
performance.mark("hass-start");
|
||||||
}
|
}
|
||||||
window.hassConnection = authProm().then(connProm);
|
window.hassConnection = authProm().then(connProm);
|
||||||
|
|||||||
Reference in New Issue
Block a user