fix electron build

This commit is contained in:
Stewart Allen 2025-02-04 16:59:06 -05:00
commit ac8b9c86cb
5 changed files with 31 additions and 7 deletions

View file

@ -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 = '';

View file

@ -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;
}