Konstantinos Kaloutas 2 лет назад
Родитель
Сommit
c17dd5fa31
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      tldraw/apps/tldraw-logseq/src/lib/shapes/PdfShape.tsx

+ 1 - 2
tldraw/apps/tldraw-logseq/src/lib/shapes/PdfShape.tsx

@@ -31,7 +31,6 @@ export class PdfShape extends TLBoxShape<PdfShapeProps> {
   ReactComponent = observer(({ events, asset, isErasing, isEditing }: TLComponentProps) => {
     const ref = React.useRef<HTMLElement>(null)
     const {
-      renderers: { Pdf },
       handlers,
     } = React.useContext(LogseqContext)
     const app = useApp<Shape>()
@@ -49,7 +48,7 @@ export class PdfShape extends TLBoxShape<PdfShapeProps> {
       >
         {asset ? (
           <embed
-            src={handlers ? handlers.inflateAsset(asset.src).url : asset.src + '#toolbar=0&navpanes=0&scrollbar=0'}
+            src={handlers ? handlers.inflateAsset(asset.src).url : asset.src}
             className="relative tl-pdf-container hide-scrollbar"
             onWheelCapture={stop}
             onPointerDown={stop}