document-viewer-ts
Advanced tools
Comparing version 0.5.3-legacy to 0.5.4-legacy
@@ -212,3 +212,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
export const renderDocument = (workerSrc) => (containerDiv) => { | ||
var _a; | ||
var _a, _b; | ||
try { | ||
@@ -220,3 +220,3 @@ const documentUrl = containerDiv.getAttribute('data-document-url'); | ||
const splitOnPeriods = documentUrl.split('.'); | ||
const extension = (_a = splitOnPeriods[(splitOnPeriods.length - 1)]) === null || _a === void 0 ? void 0 : _a.split('?')[0]; | ||
const extension = (_b = (_a = splitOnPeriods[(splitOnPeriods.length - 1)]) === null || _a === void 0 ? void 0 : _a.split('?')[0]) === null || _b === void 0 ? void 0 : _b.toLowerCase(); | ||
switch (extension) { | ||
@@ -223,0 +223,0 @@ case 'pdf': |
@@ -216,3 +216,3 @@ "use strict"; | ||
const renderDocument = (workerSrc) => (containerDiv) => { | ||
var _a; | ||
var _a, _b; | ||
try { | ||
@@ -224,3 +224,3 @@ const documentUrl = containerDiv.getAttribute('data-document-url'); | ||
const splitOnPeriods = documentUrl.split('.'); | ||
const extension = (_a = splitOnPeriods[(splitOnPeriods.length - 1)]) === null || _a === void 0 ? void 0 : _a.split('?')[0]; | ||
const extension = (_b = (_a = splitOnPeriods[(splitOnPeriods.length - 1)]) === null || _a === void 0 ? void 0 : _a.split('?')[0]) === null || _b === void 0 ? void 0 : _b.toLowerCase(); | ||
switch (extension) { | ||
@@ -227,0 +227,0 @@ case 'pdf': |
{ | ||
"name": "document-viewer-ts", | ||
"version": "0.5.3-legacy", | ||
"version": "0.5.4-legacy", | ||
"description": "PDF and MS Doc viewer written in TypeScript for React and vanilla JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "dist/lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
59770