Skip to content
Snippets Groups Projects
Commit dad672cd authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix: version was not shown in releases

parent 5066e60f
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Duniter 0.21.0a1</title> <title>Duniter 0.20.0</title>
<style> <style>
html { html {
font-family: "Courier New", Courier, monospace; font-family: "Courier New", Courier, monospace;
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
const SERVER_ORIGIN = '127.0.0.1:9220'; const SERVER_ORIGIN = '127.0.0.1:9220';
let gui = require('nw.gui'); let gui = require('nw.gui');
let packageJSON = require('./package.json');
function reqListener () { function reqListener () {
document.getElementById('loader').innerHTML = 'Server ready.'; document.getElementById('loader').innerHTML = 'Server ready.';
clearTimeout(strangeTimeout); clearTimeout(strangeTimeout);
...@@ -44,11 +46,17 @@ ...@@ -44,11 +46,17 @@
min_height: 600, min_height: 600,
min_width: 600 min_width: 600
}, function(win) { }, function(win) {
win.moveBy(300, 0);
win.window.mainWindow = win;
win.window.gui = gui; win.window.gui = gui;
win.window.duniter = {
version: packageJSON.name.substr(1)
};
win.on('closed', function() { win.on('closed', function() {
// Also close globally the app when main window is closed // Also close globally the app when main window is closed
gui.Window.get().close(); gui.Window.get().close();
}); });
win.showDevTools();
gui.Window.get().hide(); gui.Window.get().hide();
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment