Add ResizeObserver polyfill by juggle
Potential fix for older browsers
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import '@/polyfill.manual';
|
||||
import { StrictMode } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { App } from '@/App';
|
||||
|
||||
11
src/polyfill.manual.ts
Normal file
11
src/polyfill.manual.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) Contributors to the Suwayomi project
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import { ResizeObserver as JuggleResizeObserver } from '@juggle/resize-observer';
|
||||
|
||||
window.ResizeObserver ??= JuggleResizeObserver;
|
||||
Reference in New Issue
Block a user