Fix unhandled promise rejection

This commit is contained in:
MoetaYuko
2024-04-30 20:08:04 +08:00
parent de0d5ffdf0
commit 60a5e7aab5
+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);
}
}