forked from Shinonome/dots-hyprland
Fix unhandled promise rejection
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user