cancel if result is undefined
This commit is contained in:
parent
071b13ee6e
commit
356ec5d7e0
|
@ -16,7 +16,9 @@ window.addEventListener('DOMContentLoaded', () => {
|
||||||
const $ = require('jquery');
|
const $ = require('jquery');
|
||||||
|
|
||||||
$("#folder-btn").on('click', async () => {
|
$("#folder-btn").on('click', async () => {
|
||||||
const folderLoc = await ipcRenderer.invoke('open-folder-dialog');
|
const success = await ipcRenderer.invoke('set-osu-dir');
|
||||||
alert(folderLoc);
|
if (success == undefined)
|
||||||
|
return;
|
||||||
|
alert(success);
|
||||||
});
|
});
|
||||||
})
|
})
|
Loading…
Reference in New Issue
Block a user