Fix unhandled promise rejection (#448)

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