diff --git a/app/assets/css/launcher.css b/app/assets/css/launcher.css
index ea41846c..0fed7b3a 100644
--- a/app/assets/css/launcher.css
+++ b/app/assets/css/launcher.css
@@ -273,11 +273,12 @@ body, html, div {
font-family: 'Avenir Book';
background: none;
border: none;
+ cursor: pointer;
}
#menu_img {
- height:15px;
- margin-left:-2px;
+ height: 11px;
+ margin-left: -2px;
}
#menu_text {
@@ -286,6 +287,6 @@ body, html, div {
letter-spacing: 2px;
text-shadow: 0px 0px 0px #bebcbb;
font-size: 11px;
- line-height: 24px;
+ line-height: 30px;
display: flex;
}
\ No newline at end of file
diff --git a/app/index.ejs b/app/index.ejs
index 5f1aaf54..38f07694 100644
--- a/app/index.ejs
+++ b/app/index.ejs
@@ -4,10 +4,9 @@
Westeroscraft Launcher
- <% let bkid = Math.floor((Math.random() * 5)); %>
@@ -48,7 +47,6 @@
diff --git a/index.js b/index.js
index 8fb20cb8..7a84933b 100644
--- a/index.js
+++ b/index.js
@@ -1,6 +1,7 @@
const {app, BrowserWindow} = require('electron')
const path = require('path')
const url = require('url')
+const fs = require('fs')
const ejse = require('ejs-electron')
// Keep a global reference of the window object, if you don't, the window will
@@ -10,6 +11,8 @@ let win
function createWindow() {
win = new BrowserWindow({ width: 980, height: 552, icon: getPlatformIcon('WesterosSealSquare'), frame: false})
+ ejse.data('bkid', Math.floor((Math.random() * fs.readdirSync('app/assets/images/backgrounds').length)))
+
win.loadURL(url.format({
pathname: path.join(__dirname, 'app', 'index.ejs'),
protocol: 'file:',