fix: View/Download viewer will be selected as default when no other viewer is default.

This commit is contained in:
David Ball 2024-06-24 04:30:06 -04:00
parent d9e0361f7c
commit cde78c983e

View File

@ -198,7 +198,7 @@ const defaultViewerForFile = (file: string) => {
if (isMsOfficeViewerSupported(file)) {
return "ms-office-viewer";
}
else if (path.extname(file).search(/^((?:.pdf))$/ig) != -1) {
else {
return "built-in";
}
}