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

Merged
daball merged 1 commits from daball/nm3clol-express-app:main into main 2024-06-24 04:30:38 -04:00
Showing only changes of commit cde78c983e - Show all commits

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";
}
}