Ajout de la connexion entre Electron et backend
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user