forked from Shinonome/dots-hyprland
add a return
This commit is contained in:
@@ -14,7 +14,7 @@ import WaifuService from '../../../services/waifus.js';
|
|||||||
import { darkMode } from '../../.miscutils/system.js';
|
import { darkMode } from '../../.miscutils/system.js';
|
||||||
|
|
||||||
async function getImageViewerApp(preferredApp) {
|
async function getImageViewerApp(preferredApp) {
|
||||||
Utils.execAsync(['bash', '-c', `command -v ${preferredApp}`])
|
return Utils.execAsync(['bash', '-c', `command -v ${preferredApp}`])
|
||||||
.then((output) => {
|
.then((output) => {
|
||||||
if (output != '') return preferredApp;
|
if (output != '') return preferredApp;
|
||||||
else return 'xdg-open';
|
else return 'xdg-open';
|
||||||
|
|||||||
Reference in New Issue
Block a user