Skip to content

Commit 6554159

Browse files
Kajetan Dvoracekbeatrycze-volk
authored andcommitted
Use getVisiblePages() of dlfController
1 parent 9bb924c commit 6554159

File tree

1 file changed

+2
-2
lines changed
  • Resources/Private/Plugins/Kitodo/Templates/TableOfContents

1 file changed

+2
-2
lines changed

Resources/Private/Plugins/Kitodo/Templates/TableOfContents/Main.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</div>
2525

2626
<script>
27-
window.addEventListener('DOMContentLoaded', () => {
28-
new dlfTableOfContents();
27+
window.addEventListener('tx-dlf-documentLoaded', (e) => {
28+
new dlfTableOfContents(e.detail.docController);
2929
});
3030
</script>

0 commit comments

Comments
 (0)