Skip to content

Commit

Permalink
Attempt $ access for updates
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Feb 22, 2024
1 parent b590ecc commit 1d29a74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/viewer/controls/Paginator.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import Paginator from "../../../common/Paginator.svelte";
// @ts-expect-error
$: mode = doc.mode;
$: mode = $doc.mode;
$: page = doc.visiblePageNumber;
$: totalPages = viewer.document?.pageCount;
$: page = $doc.visiblePageNumber;
$: totalPages = $viewer.document?.pageCount;
$: has_next = page < totalPages;
$: has_previous = page > 1;
$: {
Expand Down

0 comments on commit 1d29a74

Please sign in to comment.