Fix unhandled promise rejection (#448)

This commit is contained in:
end-4
2024-04-30 23:11:38 +07:00
committed by GitHub
+2 -1
View File
@@ -19,7 +19,8 @@ async function getImageViewerApp(preferredApp) {
.then((output) => { .then((output) => {
if (output != '') return preferredApp; if (output != '') return preferredApp;
else return 'xdg-open'; else return 'xdg-open';
}); })
.catch(print);
} }
const IMAGE_REVEAL_DELAY = 13; // Some wait for inits n other weird stuff const IMAGE_REVEAL_DELAY = 13; // Some wait for inits n other weird stuff