You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
348 B

let getUsername = async () => {
const key = NL_OS == 'Windows' ? 'USERNAME' : 'USER';
let value = '';
try {
value = (await Neutralino.os.getEnvar({ key })).value;
}
catch(e) {
console.error(e);
}
//document.getElementById('name').innerText = `Hello ${value}`;
}
Neutralino.init();
getUsername();