π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Smoother animation
Manav Rathi786b0bac4f9a
diff --git a/web/apps/auth/src/pages/share.tsx b/web/apps/auth/src/pages/share.tsxindex 673845ba05..c60603e73b 100644--- a/web/apps/auth/src/pages/share.tsx+++ b/web/apps/auth/src/pages/share.tsx@@ -65,7 +65,11 @@ const Page: React.FC = () => {useEffect(() => {if (!sharedCode) return;+ let done = false;+const updateCode = () => {+ if (done) return;+const currentTime = Date.now();const codes = sharedCode.codes.split(",");const status = getTimeStatus(@@ -85,10 +89,15 @@ const Page: React.FC = () => {),);}++ requestAnimationFrame(updateCode);};- const interval = setInterval(updateCode, 100);- return () => clearInterval(interval);+ updateCode();++ return () => {+ done = true;+ };}, [sharedCode]);const progressBarColor = useMemo(