Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix offline recovery page

Manav Rathic3d2e400ae6f
diff --git a/web/apps/twoof3/src/features/twoof3/utils/offlineQrSource.ts b/web/apps/twoof3/src/features/twoof3/utils/offlineQrSource.ts
index e123e592c4..7b2f93e8d6 100644
--- a/web/apps/twoof3/src/features/twoof3/utils/offlineQrSource.ts
+++ b/web/apps/twoof3/src/features/twoof3/utils/offlineQrSource.ts
@@ -25,6 +25,10 @@ const toStandaloneDecodeSource = (source: string) =>
)
.replace(/^export function decodeQR\(/mu, "function decodeQR(")
.replace(/^export default decodeQR;\n?/mu, "")
+ .replace(
+ /^export const _TESTS = /mu,
+ "const qrDecodeFocusedTests = ",
+ )
.replace(/^export const _tests = /mu, "const qrDecodeTests = "),
"return decodeQR;",
"})();",