React Sample
\ No newline at end of file
+React Sample
\ No newline at end of file
diff --git a/precache-manifest.da86449fca03e464b4668421f7d4cca9.js b/precache-manifest.57796e91902f2cc5d3b1905bd754a66a.js
similarity index 68%
rename from precache-manifest.da86449fca03e464b4668421f7d4cca9.js
rename to precache-manifest.57796e91902f2cc5d3b1905bd754a66a.js
index 6f371c6..510faf1 100644
--- a/precache-manifest.da86449fca03e464b4668421f7d4cca9.js
+++ b/precache-manifest.57796e91902f2cc5d3b1905bd754a66a.js
@@ -1,11 +1,11 @@
self.__precacheManifest = [
{
- "revision": "be6573639b99548fa95c",
+ "revision": "d8bbaeb7d678c394a416",
"url": "/webviewer-react-sample/static/css/main.7af49e68.chunk.css"
},
{
- "revision": "be6573639b99548fa95c",
- "url": "/webviewer-react-sample/static/js/main.be657363.chunk.js"
+ "revision": "d8bbaeb7d678c394a416",
+ "url": "/webviewer-react-sample/static/js/main.d8bbaeb7.chunk.js"
},
{
"revision": "695143d22b6e609a2a4c",
@@ -16,7 +16,7 @@ self.__precacheManifest = [
"url": "/webviewer-react-sample/static/js/runtime~main.23dd03fb.js"
},
{
- "revision": "4b933a9a2367080480a4e16b948528e9",
+ "revision": "1645fa85e4b5c701cd80b408371c1b7f",
"url": "/webviewer-react-sample/index.html"
}
];
\ No newline at end of file
diff --git a/service-worker.js b/service-worker.js
index a75a70c..1863fa5 100644
--- a/service-worker.js
+++ b/service-worker.js
@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts(
- "/webviewer-react-sample/precache-manifest.da86449fca03e464b4668421f7d4cca9.js"
+ "/webviewer-react-sample/precache-manifest.57796e91902f2cc5d3b1905bd754a66a.js"
);
workbox.clientsClaim();
diff --git a/static/js/main.be657363.chunk.js b/static/js/main.be657363.chunk.js
deleted file mode 100644
index 791031e..0000000
--- a/static/js/main.be657363.chunk.js
+++ /dev/null
@@ -1,2 +0,0 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{11:function(e,n,t){},13:function(e,n,t){"use strict";t.r(n);var a=t(0),c=t.n(a),r=t(2),i=t.n(r),l=(t(9),t(3)),s=t.n(l),o=(t(11),function(){var e=Object(a.useRef)(null);return Object(a.useEffect)(function(){s()({path:"/webviewer-react-sample/webviewer/lib",initialDoc:"/webviewer-react-sample/files/outlines-nested.pdf"},e.current).then(function(e){e.UI.enableElements(["bookmarksPanel","bookmarksPanelButton"])})},[]),c.a.createElement("div",{className:"App"},c.a.createElement("div",{className:"header"},"React sample"),c.a.createElement("div",{className:"webviewer",ref:e}))});i.a.render(c.a.createElement(o,null),document.getElementById("root"))},4:function(e,n,t){e.exports=t(13)},9:function(e,n,t){}},[[4,2,1]]]);
-//# sourceMappingURL=main.be657363.chunk.js.map
\ No newline at end of file
diff --git a/static/js/main.be657363.chunk.js.map b/static/js/main.be657363.chunk.js.map
deleted file mode 100644
index 7b8220c..0000000
--- a/static/js/main.be657363.chunk.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["App.js","index.js"],"names":["App","viewer","useRef","useEffect","WebViewer","path","initialDoc","current","then","instance","UI","enableElements","react_default","a","createElement","className","ref","ReactDOM","render","src_App_0","document","getElementById"],"mappings":"gLA+BeA,SA3BH,WACV,IAAMC,EAASC,iBAAO,MAkBtB,OAfAC,oBAAU,WACRC,IACE,CACEC,KAAM,wCACNC,WAAY,qDAEdL,EAAOM,SACPC,KAAK,SAACC,GACNA,EAASC,GAAGC,eAAe,CACzB,iBACA,4BAGH,IAGDC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,OACbH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,UAAf,gBACAH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,YAAYC,IAAKf,OCrBtCgB,IAASC,OAAON,EAAAC,EAAAC,cAACK,EAAD,MAASC,SAASC,eAAe","file":"static/js/main.be657363.chunk.js","sourcesContent":["import React, { useRef, useEffect } from 'react';\nimport WebViewer from '@pdftron/webviewer';\nimport './App.css';\n\nconst App = () => {\n const viewer = useRef(null);\n\n // if using a class, equivalent of componentDidMount \n useEffect(() => {\n WebViewer(\n {\n path: '/webviewer-react-sample/webviewer/lib',\n initialDoc: '/webviewer-react-sample/files/outlines-nested.pdf',\n },\n viewer.current,\n ).then((instance) => {\n instance.UI.enableElements([\n 'bookmarksPanel',\n 'bookmarksPanelButton',\n ]);\n });\n }, []);\n\n return (\n
\n
React sample
\n \n
\n );\n};\n\nexport default App;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\n\nReactDOM.render(, document.getElementById('root'));\n"],"sourceRoot":""}
\ No newline at end of file
diff --git a/static/js/main.d8bbaeb7.chunk.js b/static/js/main.d8bbaeb7.chunk.js
new file mode 100644
index 0000000..9694f6d
--- /dev/null
+++ b/static/js/main.d8bbaeb7.chunk.js
@@ -0,0 +1,2 @@
+(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{11:function(e,n,t){},13:function(e,n,t){"use strict";t.r(n);var a=t(0),c=t.n(a),o=t(2),r=t.n(o),i=(t(9),t(3)),l=t.n(i),s=(t(11),function(){var e=Object(a.useRef)(null);return Object(a.useEffect)(function(){l()({path:"/webviewer/lib",initialDoc:"/files/outlines-nested.pdf"},e.current).then(function(e){e.UI.enableElements(["bookmarksPanel","bookmarksPanelButton"])})},[]),c.a.createElement("div",{className:"App"},c.a.createElement("div",{className:"header"},"React sample"),c.a.createElement("div",{className:"webviewer",ref:e}))});r.a.render(c.a.createElement(s,null),document.getElementById("root"))},4:function(e,n,t){e.exports=t(13)},9:function(e,n,t){}},[[4,2,1]]]);
+//# sourceMappingURL=main.d8bbaeb7.chunk.js.map
\ No newline at end of file
diff --git a/static/js/main.d8bbaeb7.chunk.js.map b/static/js/main.d8bbaeb7.chunk.js.map
new file mode 100644
index 0000000..64de992
--- /dev/null
+++ b/static/js/main.d8bbaeb7.chunk.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["App.js","index.js"],"names":["App","viewer","useRef","useEffect","WebViewer","path","initialDoc","current","then","instance","UI","enableElements","react_default","a","createElement","className","ref","ReactDOM","render","src_App_0","document","getElementById"],"mappings":"gLA+BeA,SA3BH,WACV,IAAMC,EAASC,iBAAO,MAkBtB,OAfAC,oBAAU,WACRC,IACE,CACEC,KAAM,iBACNC,WAAY,8BAEdL,EAAOM,SACPC,KAAK,SAACC,GACNA,EAASC,GAAGC,eAAe,CACzB,iBACA,4BAGH,IAGDC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,OACbH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,UAAf,gBACAH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,YAAYC,IAAKf,OCrBtCgB,IAASC,OAAON,EAAAC,EAAAC,cAACK,EAAD,MAASC,SAASC,eAAe","file":"static/js/main.d8bbaeb7.chunk.js","sourcesContent":["import React, { useRef, useEffect } from 'react';\nimport WebViewer from '@pdftron/webviewer';\nimport './App.css';\n\nconst App = () => {\n const viewer = useRef(null);\n\n // if using a class, equivalent of componentDidMount \n useEffect(() => {\n WebViewer(\n {\n path: '/webviewer/lib',\n initialDoc: '/files/outlines-nested.pdf',\n },\n viewer.current,\n ).then((instance) => {\n instance.UI.enableElements([\n 'bookmarksPanel',\n 'bookmarksPanelButton',\n ]);\n });\n }, []);\n\n return (\n
\n
React sample
\n \n
\n );\n};\n\nexport default App;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\n\nReactDOM.render(, document.getElementById('root'));\n"],"sourceRoot":""}
\ No newline at end of file