We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 649c15f commit 876f3b1Copy full SHA for 876f3b1
examples/nextjs/app/page.js
@@ -12,17 +12,16 @@ export default function App() {
12
useEffect(() => {
13
const container = containerRef.current;
14
15
- const { PSPDFKit } = window;
16
- if (container && PSPDFKit) {
17
- PSPDFKit.load({
+ const { NutrientViewer } = window;
+ if (container && NutrientViewer) {
+ NutrientViewer.load({
18
container,
19
document: "/example.pdf",
20
- // baseUrl: `${window.location.protocol}//${window.location.host}/`,
21
});
22
}
23
24
return () => {
25
- PSPDFKit?.unload(container);
+ NutrientViewer?.unload(container);
26
};
27
}, []);
28
0 commit comments