Skip to content

Commit

Permalink
print serial on label
Browse files Browse the repository at this point in the history
  • Loading branch information
ech0-de committed Jun 2, 2023
1 parent 140ac9f commit 85805ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ const tmp = require('tmp-promise');
const fs = require('fs/promises');
require('update-electron-app')();

console.log(require('update-electron-app'));

regedit.setExternalVBSLocation('./.webpack/main/vbs');
regedit.setExternalVBSLocation('./vbs');

Expand Down Expand Up @@ -66,8 +64,7 @@ const createWindow = () => {
}
}, (e) => e ? reject(e) : resolve()));
} catch (e) {
e.message = `Registry hack didn't work (${e.message})`;
throw e;
mainWindow.webContents.send('error', `Registry hack didn't work (${e.message})`);
}

if (!settings || typeof settings !== 'object') {
Expand Down
4 changes: 4 additions & 0 deletions src/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ window.addEventListener('DOMContentLoaded', () => {
yaml.description = `Besitzer*in: ${yaml.owner}\n${yaml.description}`;
}

if (yaml.serial) {
yaml.description = `S/N: ${yaml.serial}\n${yaml.description}`;
}

const item = document.createElement('li');
item.id = id;

Expand Down

0 comments on commit 85805ee

Please sign in to comment.