Remove Safari 14.0 patch for delegatesFocus (#21247)
parent
ab3b8593f4
commit
82329833f5
|
@ -1,4 +1,3 @@
|
|||
import "../../../src/resources/safari-14-attachshadow-patch";
|
||||
import "./layout/hc-connect";
|
||||
|
||||
import("../../../src/resources/ha-style");
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import "../../src/resources/safari-14-attachshadow-patch";
|
||||
import "./util/is_frontpage";
|
||||
import "./ha-demo";
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
// Compat needs to be first import
|
||||
import "../../src/resources/compatibility";
|
||||
import "../../src/resources/safari-14-attachshadow-patch";
|
||||
import "./hassio-main";
|
||||
|
||||
import("../../src/resources/ha-style");
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
// Compat needs to be first import
|
||||
import "../resources/compatibility";
|
||||
import "../auth/ha-authorize";
|
||||
import "../resources/safari-14-attachshadow-patch";
|
||||
|
||||
import("../resources/ha-style");
|
||||
import("@polymer/polymer/lib/utils/settings").then(
|
||||
|
|
|
@ -25,7 +25,6 @@ import { subscribePanels } from "../data/ws-panels";
|
|||
import { subscribeThemes } from "../data/ws-themes";
|
||||
import { subscribeUser } from "../data/ws-user";
|
||||
import type { ExternalAuth } from "../external_app/external_auth";
|
||||
import "../resources/safari-14-attachshadow-patch";
|
||||
|
||||
window.name = MAIN_WINDOW_NAME;
|
||||
(window as any).frontendVersion = __VERSION__;
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
// Compat needs to be first import
|
||||
import "../resources/compatibility";
|
||||
import "../resources/safari-14-attachshadow-patch";
|
||||
|
||||
import { CSSResult } from "lit";
|
||||
import { fireEvent } from "../common/dom/fire_event";
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
// Compat needs to be first import
|
||||
import "../resources/compatibility";
|
||||
import "../onboarding/ha-onboarding";
|
||||
import "../resources/safari-14-attachshadow-patch";
|
||||
|
||||
import("../resources/ha-style");
|
||||
import("@polymer/polymer/lib/utils/settings").then(
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
// https://github.com/home-assistant/frontend/pull/7031
|
||||
|
||||
export {}; // for Babel to treat as a module
|
||||
|
||||
const isSafari14 = /^((?!chrome|android).)*version\/14\.0\s.*safari/i.test(
|
||||
navigator.userAgent
|
||||
);
|
||||
|
||||
if (isSafari14) {
|
||||
const origAttachShadow = window.Element.prototype.attachShadow;
|
||||
window.Element.prototype.attachShadow = function (init) {
|
||||
if (init && init.delegatesFocus) {
|
||||
delete init.delegatesFocus;
|
||||
}
|
||||
return origAttachShadow.apply(this, [init]);
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue