Use const in viewer_compatibility.js

This commit is contained in:
Wojciech Maj 2019-12-22 18:14:52 +01:00
parent 6316b2a195
commit b777e775f4
No known key found for this signature in database
GPG Key ID: 24A586806A31F908

View File

@ -12,8 +12,9 @@
* See the License for the specific language governing permissions and
* 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')) {
const userAgent =
(typeof navigator !== 'undefined' && navigator.userAgent) || '';