Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit 9afd8ba

Browse files
committed
removed license key
1 parent 7a45c38 commit 9afd8ba

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"react-scripts": "2.1.1"
99
},
1010
"devDependencies": {
11-
"@pdftron/webviewer-downloader": "^1.0.4",
11+
"@pdftron/webviewer-downloader": "^1.0.7",
1212
"btoa": "^1.2.1",
1313
"download": "^7.1.0",
1414
"fs-extra": "^7.0.1"
@@ -19,8 +19,7 @@
1919
"test": "react-scripts test",
2020
"eject": "react-scripts eject",
2121
"postinstall": "npx @pdftron/webviewer-downloader",
22-
"add-license": "npx @pdftron/webviewer-downloader --license",
23-
"download-webviewer": "npx @pdftron/webviewer-downloader --webviewer"
22+
"download-webviewer": "npx @pdftron/webviewer-downloader"
2423
},
2524
"eslintConfig": {
2625
"extends": "react-app"

public/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
Learn how to configure a non-root public URL by running `npm run build`.
2121
-->
2222
<title>React Sample</title>
23-
<script src="%PUBLIC_URL%/license-key.js"></script>
2423
<script src="%PUBLIC_URL%/lib/webviewer.min.js"></script>
2524
</head>
2625
<body>

src/WebViewer.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ class WebViewer extends Component {
1010
componentDidMount() {
1111
this.myWebViewer = new window.PDFTron.WebViewer({
1212
path: 'lib',
13-
initialDoc: 'files/webviewer-demo-annotated.pdf',
14-
l: atob(window.licenseKey)
13+
initialDoc: 'files/webviewer-demo-annotated.pdf'
1514
}, this.viewer.current);
16-
this.viewer.current.addEventListener('ready', this.readyHandler);
17-
this.viewer.current.addEventListener('documentLoaded', this.documentLoadedHandler);
1815
}
1916

2017
getInstance() {

0 commit comments

Comments
 (0)