mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 05:57:54 +00:00
Disable adoptedStyleSheets in dev (#4474)
This commit is contained in:
parent
21ae483dc9
commit
da25701dca
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user