mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Add ResizeObserver polyfill for safari (#3142)
This commit is contained in:
@@ -24,6 +24,11 @@ async function checkPolyfills() {
|
||||
await import("@formatjs/intl-pluralrules/polyfill");
|
||||
await import("@formatjs/intl-pluralrules/locale-data/en");
|
||||
}
|
||||
|
||||
if (!("ResizeObserver" in window)) {
|
||||
const ResizeObserver = await import("resize-observer-polyfill");
|
||||
window.ResizeObserver = ResizeObserver.default;
|
||||
}
|
||||
}
|
||||
|
||||
export const initPolyfills = async () => {
|
||||
|
||||
Reference in New Issue
Block a user