You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.error(`File extension is not found or incorrect. Use "extension" option in PDFTron.WebViewer constructor and loadDocument if the extension is not known. See for more details ...`)
291
-
console.error(`File extension ${extension} from ${doc} is not supported.\nWebViewer client only mode supports ${supportedClientOnlyExtensions.join(', ')}.\nWebViewer server supports ${supportedBlackboxExtensions.join(', ')}`);
292
-
}
293
-
}elseif(doc&&engineType===engineTypes.AUTO){
294
-
console.warn(`File extension cannot be determined from ${doc}. Falling back to pdf`);
295
-
}
296
-
297
-
returnextension ? extension : '';
288
+
returnextension;
298
289
};
299
290
300
291
exportconstgetDocName=state=>{
301
292
// if the filename is specified then use that for checking the extension instead of the doc path
0 commit comments