Commit fcbb2969 authored by Florent Berthelot's avatar Florent Berthelot

not perfect but logs are display now

parent 1250b5e9
......@@ -2,7 +2,7 @@
<html>
<head>
<style>
h1 {color: white;}
div {color: white;}
</style>
<meta charset="UTF-8">
<title>Karaoke Mugen</title>
......@@ -11,7 +11,7 @@
<meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'">
</head>
<body>
<h1>LA PAGE DE DEMARRAGE DE KARAOKE MUGEN (JE PARLE EN MAJUSCULE SI JE VEUX)</h1>
<div id="logs"></div>
</body>
<script src="index.js"></script>
</html>
\ No newline at end of file
const ipcRenderer = require('electron').ipcRenderer
console.log(ipcRenderer)
ipcRenderer.on('log', (event, data)=> {
console.log('appel')
console.log(event)
console.log(data)
let div =document.getElementById('logs');
div.innerText = div.innerText +'\n'+data.message
})
\ No newline at end of file
......@@ -162,7 +162,7 @@ function createWindow () {
nodeIntegration: true
}
});
win.webContents.openDevTools();
// and load the index.html of the app.
win.loadFile('./src/index.html');
win.maximize();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment