forked from nm3clol/nm3clol-express-app
fix: View/Download viewer will be selected as default when no other viewer is default.
This commit is contained in:
parent
d9e0361f7c
commit
cde78c983e
|
@ -198,7 +198,7 @@ const defaultViewerForFile = (file: string) => {
|
||||||
if (isMsOfficeViewerSupported(file)) {
|
if (isMsOfficeViewerSupported(file)) {
|
||||||
return "ms-office-viewer";
|
return "ms-office-viewer";
|
||||||
}
|
}
|
||||||
else if (path.extname(file).search(/^((?:.pdf))$/ig) != -1) {
|
else {
|
||||||
return "built-in";
|
return "built-in";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user