forked from Shinonome/dots-hyprland
Fix unhandled promise rejection (#448)
This commit is contained in:
@@ -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
|
||||||
@@ -408,4 +409,4 @@ export const sendMessage = (text) => {
|
|||||||
|
|
||||||
}
|
}
|
||||||
else WaifuService.fetch(text);
|
else WaifuService.fetch(text);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user