mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 13:37:47 +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__) {
|
||||
// Remove adoptedStyleSheets so style inspector works on shadow DOM.
|
||||
// @ts-ignore
|
||||
delete Document.prototype.adoptedStyleSheets;
|
||||
performance.mark("hass-start");
|
||||
}
|
||||
window.hassConnection = authProm().then(connProm);
|
||||
|
Loading…
x
Reference in New Issue
Block a user