Update book viewer links

This commit is contained in:
aditya.chandel
2025-10-12 02:26:40 -06:00
parent a7622f1df1
commit 14be8bab36
@@ -199,14 +199,14 @@ export class BookService {
switch (book.bookType) { switch (book.bookType) {
case "PDF": case "PDF":
url = !reader || reader === "ngx" url = !reader || reader === "ngx"
? `/pdf-viewer/book/${book.id}` ? `/pdf-reader/book/${book.id}`
: `/cbx-viewer/book/${book.id}`; : `/cbx-reader/book/${book.id}`;
break; break;
case "EPUB": case "EPUB":
url = `/epub-viewer/book/${book.id}`; url = `/epub-reader/book/${book.id}`;
break; break;
case "CBX": case "CBX":
url = `/cbx-viewer/book/${book.id}`; url = `/cbx-reader/book/${book.id}`;
break; break;
default: default:
console.error('Unsupported book type:', book.bookType); console.error('Unsupported book type:', book.bookType);