A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
fix: polyfill Map.getOrInsertComputed for Waterfox (#3067)
Adian Kozlica63e8c3ca33e6
diff --git a/apps/web/src/routes/__root.tsx b/apps/web/src/routes/__root.tsxindex 1af631923..3bc952b36 100644--- a/apps/web/src/routes/__root.tsx+++ b/apps/web/src/routes/__root.tsx@@ -44,6 +44,17 @@ const title = `${appName} — ${tagline}`;const description ="Reactive Resume is a free and open-source resume builder that simplifies the process of creating, updating, and sharing your resume.";+const mapGetOrInsertComputedPolyfill = `+ if (!Map.prototype.getOrInsertComputed) {+ Map.prototype.getOrInsertComputed = function (key, callbackFn) {+ if (this.has(key)) return this.get(key);+ const value = callbackFn(key);+ this.set(key, value);+ return value;+ };+ }+`;+export const Route = createRootRouteWithContext<RouterContext>()({shellComponent: RootDocument,head: () => {@@ -77,7 +88,10 @@ export const Route = createRootRouteWithContext<RouterContext>()({{ property: "og:description", content: description },{ property: "og:url", content: appUrl },],- scripts: import.meta.env.PROD ? [{ children: pwaServiceWorkerRegistrationScript }] : [],+ scripts: [+ { children: mapGetOrInsertComputedPolyfill },+ ...(import.meta.env.PROD ? [{ children: pwaServiceWorkerRegistrationScript }] : []),+ ],};},beforeLoad: async () => {