mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: remove deprecated util global
This commit is contained in:
23 files changed
+9
-80
No files matched your search
@@ -204,16 +204,3 @@ export async function setTemporaryViewTransitionNames(entries, vtPromise: Promis
|
||||
export function getTheme(): 'dark' | 'light' {
|
||||
return ['light', 'dark'].includes(UserContext.theme) ? UserContext.theme : 'light';
|
||||
}
|
||||
|
||||
Object.assign(window.Hydro.utils, {
|
||||
i18n,
|
||||
rawHtml,
|
||||
substitute,
|
||||
secureRandomString,
|
||||
request,
|
||||
tpl,
|
||||
delay,
|
||||
zIndexManager,
|
||||
withTransitionCallback,
|
||||
setTemporaryViewTransitionNames,
|
||||
});
|
||||
Reference in new issue
Block a user