Ajout de la connexion entre Electron et backend

This commit is contained in:
Quentin Millardet
2024-01-14 00:17:13 +01:00
parent e7488cc5c7
commit 38bc3e7ae5
9 changed files with 330 additions and 81 deletions

View File

@@ -1,6 +1,9 @@
const func = async () => {
const response = await window.versions.ping()
console.log(response) // Affichera 'pong'
const response = await window.versions.deviceInfo()
response.forEach((element) => {
let body = document.getElementById('deviceNameBody');
body.innerHTML += '<tr><td> ' + element.device + '</td></tr>'
})
}
func()