Commit b635d0ba authored by Minteck's avatar Minteck 😸

Login 100% fonctionnel (sans fuite de mémoire)

parent 3b7f9e3f
Pipeline #130129313 passed with stage
in 1 minute and 18 seconds
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch via NPM",
"port": 9229,
"request": "launch",
"runtimeArgs": [
"run-script",
"debug"
],
"runtimeExecutable": "npm",
"skipFiles": [
"<node_internals>/**"
],
"type": "pwa-node"
},
{
"name": "Electron Main",
"program": "${workspaceFolder}/index.js",
"request": "launch",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
"skipFiles": [
"<node_internals>/**"
],
"type": "pwa-node"
},
{
"type": "node",
"request": "launch",
"name": "Debug",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/index.js"
}
]
}
\ No newline at end of file
......@@ -6,27 +6,29 @@ function processCommand(command) {
user = command.substr(6);
// Login the user
document.getElementById('wv-session').style.display = "flex";// $("#wv-session").fadeIn(200);
setInterval(() => {
setTimeout(() => {
document.getElementById('wv-fdm').style.display = "none";// $("#wv-fdm").fadeOut(200);
document.getElementById('wv-shell').style.display = "flex";// $("#wv-shell").fadeIn(200);
setInterval(() => {
setTimeout(() => {
document.getElementById('wv-session').style.display = "none";// $("#wv-session").fadeOut(200);
setInterval(() => {
setTimeout(() => {
cipc.getCurrentWindow().session = user;
clearInterval(login);
}, 500)
}, 200)
}, 500)
}
}
setInterval(() => {
login = setInterval(() => {
if (typeof cipc.getCurrentWindow().command == "string") {
buffer = cipc.getCurrentWindow().command;
cipc.getCurrentWindow().command = null;
processCommand(buffer);
// console.log("call, process command");
// processCommand(cipc.getCurrentWindow().command);
buffer = undefined;
} else {
cipc.getCurrentWindow().command = null;
}
}, 500)
\ No newline at end of file
}, 5000)
\ No newline at end of file
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