Skip to content

armgit / ente

Public Imported from GitHub
0

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

Use photos app name since museum doesn't know about embed yet

Manav Rathi5effd8ae635d
diff --git a/web/apps/embed/public/images/favicon.png b/web/apps/embed/public/images/favicon.png
new file mode 100644
index 0000000000..fcb8d1054b
Binary files /dev/null and b/web/apps/embed/public/images/favicon.png differ
diff --git a/web/apps/embed/src/components/EmbedFileList.tsx b/web/apps/embed/src/components/EmbedFileList.tsx
index af9130e27c..4954354242 100644
--- a/web/apps/embed/src/components/EmbedFileList.tsx
+++ b/web/apps/embed/src/components/EmbedFileList.tsx
@@ -85,13 +85,16 @@ const EmbedFileTile: React.FC<EmbedFileTileProps> = memo(
React.useEffect(() => {
void loadThumbnail();
+ }, [loadThumbnail]);
+ // Separate cleanup effect that only runs on unmount
+ React.useEffect(() => {
return () => {
if (thumbnailSrc) {
URL.revokeObjectURL(thumbnailSrc);
}
};
- }, [loadThumbnail, thumbnailSrc]);
+ }, [thumbnailSrc]);
const content = useMemo(() => {
if (isLoading) {
diff --git a/web/apps/embed/src/pages/index.tsx b/web/apps/embed/src/pages/index.tsx
index 401f4fdc40..8b737e4680 100644
--- a/web/apps/embed/src/pages/index.tsx
+++ b/web/apps/embed/src/pages/index.tsx
@@ -54,11 +54,10 @@ export default function EmbedGallery() {
const collectionKey = useRef<string | undefined>(undefined);
useEffect(() => {
- const currentURL = new URL(window.location.href);
-
const main = async () => {
let redirectingToWebsite = false;
try {
+ const currentURL = new URL(window.location.href);
const t = currentURL.searchParams.get("t");
const ck = await extractCollectionKeyFromShareURL(currentURL);
if (!t && !ck) {
@@ -99,6 +98,7 @@ export default function EmbedGallery() {
}
}
};
+
main();
}, []);
diff --git a/web/packages/base/app.ts b/web/packages/base/app.ts
index 9d0fbd34fa..2deb82be2c 100644
--- a/web/packages/base/app.ts
+++ b/web/packages/base/app.ts
@@ -86,7 +86,7 @@ export const clientPackageName = (() => {
accounts: "io.ente.accounts.web",
auth: "io.ente.auth.web",
cast: "io.ente.cast.web",
- embed: "io.ente.embed.web",
+ embed: "io.ente.photos.web", // Use photos package name for embed app
locker: "io.ente.locker.web",
photos: "io.ente.photos.web",
}[appName];