Skip to content

Commit 876f3b1

Browse files
committed
update to NutrientViewer
1 parent 649c15f commit 876f3b1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

examples/nextjs/app/page.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,16 @@ export default function App() {
1212
useEffect(() => {
1313
const container = containerRef.current;
1414

15-
const { PSPDFKit } = window;
16-
if (container && PSPDFKit) {
17-
PSPDFKit.load({
15+
const { NutrientViewer } = window;
16+
if (container && NutrientViewer) {
17+
NutrientViewer.load({
1818
container,
1919
document: "/example.pdf",
20-
// baseUrl: `${window.location.protocol}//${window.location.host}/`,
2120
});
2221
}
2322

2423
return () => {
25-
PSPDFKit?.unload(container);
24+
NutrientViewer?.unload(container);
2625
};
2726
}, []);
2827

0 commit comments

Comments
 (0)