fix electron build
This commit is contained in:
parent
f5406a69d9
commit
ac8b9c86cb
5 changed files with 31 additions and 7 deletions
|
|
@ -342,7 +342,8 @@ self.kiri.load(api => {
|
|||
}
|
||||
|
||||
function file_list() {
|
||||
if (selected?.rec?.host) {
|
||||
let { host, code, serial } = selected?.rec || {};
|
||||
if (host && code && serial) {
|
||||
filelist.selectedIndex = -1;
|
||||
$('bbl_file_size').value =
|
||||
$('bbl_file_date').value = '';
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ module.exports = async (server) => {
|
|||
}
|
||||
|
||||
if (!(env.debug || env.electron)) {
|
||||
util.log('no valid context for bambu');
|
||||
util.log('not a valid context for bambu');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue