Remove Safari 14.0 patch for delegatesFocus (#21247)

pull/21259/head
Steve Repsher 2024-07-03 00:28:57 -04:00 committed by GitHub
parent ab3b8593f4
commit 82329833f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 0 additions and 24 deletions

View File

@ -1,4 +1,3 @@
import "../../../src/resources/safari-14-attachshadow-patch";
import "./layout/hc-connect";
import("../../../src/resources/ha-style");

View File

@ -1,4 +1,3 @@
import "../../src/resources/safari-14-attachshadow-patch";
import "./util/is_frontpage";
import "./ha-demo";

View File

@ -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");

View File

@ -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(

View File

@ -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__;

View File

@ -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";

View File

@ -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(

View File

@ -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]);
};
}