diff --git a/frontend/dashboard/src/api/registry/overlays.ts b/frontend/dashboard/src/api/registry/overlays.ts index d042b319d..5537caabd 100644 --- a/frontend/dashboard/src/api/registry/overlays.ts +++ b/frontend/dashboard/src/api/registry/overlays.ts @@ -4,7 +4,7 @@ import { protectedApiClient } from '@/api/twirp'; function b64EncodeUnicode(str: string) { return btoa( - encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function toSolidBytes(match, p1) { + encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function toSolidBytes(_, p1) { return String.fromCharCode(parseInt('0x' + p1)); }), ); diff --git a/frontend/overlays/src/pages/overlaysRegistry.tsx b/frontend/overlays/src/pages/overlaysRegistry.tsx index 14ae6b763..24650c7d2 100644 --- a/frontend/overlays/src/pages/overlaysRegistry.tsx +++ b/frontend/overlays/src/pages/overlaysRegistry.tsx @@ -159,13 +159,13 @@ export const OverlaysRegistry: React.FC = () => { }; -function b64EncodeUnicode(str: string) { - return btoa( - encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function toSolidBytes(match, p1) { - return String.fromCharCode(parseInt('0x' + p1)); - }), - ); -} +// function b64EncodeUnicode(str: string) { +// return btoa( +// encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function toSolidBytes(_, p1) { +// return String.fromCharCode(parseInt('0x' + p1)); +// }), +// ); +// } function b64DecodeUnicode(str: string) { return decodeURIComponent(