mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +02:00
Merge pull request #11425 from wojtekmaj/viewer-compatibility-const
Use const in viewer_compatibility.js
This commit is contained in:
commit
d96d8c55e1
1 changed files with 2 additions and 1 deletions
|
@ -12,8 +12,9 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
/* eslint no-var: error, prefer-const: error */
|
||||||
|
|
||||||
let compatibilityParams = Object.create(null);
|
const compatibilityParams = Object.create(null);
|
||||||
if (typeof PDFJSDev === 'undefined' || PDFJSDev.test('GENERIC')) {
|
if (typeof PDFJSDev === 'undefined' || PDFJSDev.test('GENERIC')) {
|
||||||
const userAgent =
|
const userAgent =
|
||||||
(typeof navigator !== 'undefined' && navigator.userAgent) || '';
|
(typeof navigator !== 'undefined' && navigator.userAgent) || '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue