Revert "web: Safari fixes merge branch (#14181)" (#14211)

This commit is contained in:
Marc 'risson' Schmitt
2025-04-24 20:00:29 +02:00
committed by GitHub
parent cf160f800d
commit 337956672f
31 changed files with 832 additions and 1424 deletions

View File

@ -3,6 +3,7 @@ import "rapidoc";
import { CSRFHeaderName } from "@goauthentik/common/api/config";
import { EVENT_THEME_CHANGE } from "@goauthentik/common/constants";
import { globalAK } from "@goauthentik/common/global";
import { first, getCookie } from "@goauthentik/common/utils";
import { Interface } from "@goauthentik/elements/Interface";
import "@goauthentik/elements/ak-locale-context";
@ -61,6 +62,10 @@ export class APIBrowser extends Interface {
);
}
async getTheme(): Promise<UiThemeEnum> {
return globalAK()?.brand.uiTheme || UiThemeEnum.Automatic;
}
render(): TemplateResult {
return html`
<ak-locale-context>