From fdd4c99485897f140897b338cbc6e7c0f5ab4f71 Mon Sep 17 00:00:00 2001 From: Tomas Mirchev Date: Wed, 2 Jul 2025 18:18:50 +0000 Subject: [PATCH] polifill reversed --- reader/src/App.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reader/src/App.jsx b/reader/src/App.jsx index f9e334d..bad2c5a 100644 --- a/reader/src/App.jsx +++ b/reader/src/App.jsx @@ -30,6 +30,12 @@ import ResourcePage from "./ResourcePage.jsx"; const DIVIDER_AT = 16; +if (!Array.prototype.toReversed) { + Array.prototype.toReversed = function () { + return this.slice().reverse(); + }; +} + export function App() { return ( <>