Merge pull request 'fix: View/Download viewer will be selected as default when no other viewer is default.' (#19) from daball/nm3clol-express-app:main into main

Reviewed-on: nm3clol/nm3clol-express-app#19
This commit is contained in:
David Ball 2024-06-24 04:30:36 -04:00
commit 9a8f507544

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