Skip to content

Commit

Permalink
Merge pull request #916 from the-hideout/resize-observer-polyfill
Browse files Browse the repository at this point in the history
Use polyfill for ResizeObserver
  • Loading branch information
Shebuka authored Apr 6, 2024
2 parents 528ef79 + 79bec08 commit 5765a30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/item-image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import ImageViewer from 'react-simple-image-viewer';
import { useTranslation } from 'react-i18next';
import Tippy from '@tippyjs/react';
import 'tippy.js/dist/tippy.css';
import ResizeObserver from 'resize-observer-polyfill';

import './index.css';

Expand Down
1 change: 1 addition & 0 deletions src/pages/map/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
TransformWrapper,
TransformComponent,
} from 'react-zoom-pan-pinch';
import ResizeObserver from 'resize-observer-polyfill';

import L from 'leaflet';
import 'leaflet/dist/leaflet.css';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/player/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ function Player() {
}
}
if (loadoutItem.upd?.Repairable) {
countLabel = `${loadoutItem.upd.Repairable.Durability}/${loadoutItem.upd.Repairable.MaxDurability}`
countLabel = `${loadoutItem.upd.Repairable.Durability.toFixed(2)}/${loadoutItem.upd.Repairable.MaxDurability}`
}
if (loadoutItem.upd?.MedKit) {
const item = items.find(i => i.id === loadoutItem._tpl);
Expand Down

0 comments on commit 5765a30

Please sign in to comment.