浏览代码

add reveal option

Yuki Takei 3 年之前
父节点
当前提交
f0b3d2a9dd
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      packages/presentation/src/components/PresentationWithReveal.tsx

+ 4 - 1
packages/presentation/src/components/PresentationWithReveal.tsx

@@ -17,7 +17,10 @@ export const Presentation = (props: Props): JSX.Element => {
 
   useEffect(() => {
     if (children != null) {
-      Reveal.initialize();
+      Reveal.initialize({
+        hash: true,
+        pageNumber: true,
+      });
     }
   }, [children]);