Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ src/webparts/pdfViewer/components/PdfViewer.tsx

Replace the entire file with the following:

```tsx
{% tabs %}
{% highlight ts tabtitle="Standalone" %}
{% raw %}
import * as React from 'react';
import type { IPdfViewerProps } from './IPdfViewerProps';

Expand Down Expand Up @@ -191,7 +193,9 @@ export default class PdfViewer extends React.Component<IPdfViewerProps> {
);
}
}
```
{% endraw %}
{% endhighlight %}
{% endtabs %}

Remember to replace `your-site.sharepoint.com/sites/PdfViewerDemo` in `resourceUrl` with the URL of your SharePoint site before serving the web part.

Expand Down