Skip to content

Commit

Permalink
Start rwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
snaildos committed Feb 9, 2021
1 parent 442f78c commit 0f07e2e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 29 deletions.
7 changes: 2 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ <h4 class="modal-title"><h2>SnailFM Settings</h2></h4>
<div class="modal-body">
<h4>Please click what settings you want too change.</h4>
<h4>If you don't want too change SnailFM settings, press the "More Settings" too change Account settings, encoder settings, and more.</h4>
<span style="font-size:20px;cursor:pointer;color:red" onclick="openNav()">&#9776; More settings</span>
<span class="hidden" style="font-size:20px;cursor:pointer;color:red" onclick="openNav()">&#9776; More settings</span>
<h2>SnailFM Settings</h2>
<script type="text/javascript">
function toggle(button)
Expand All @@ -224,15 +224,11 @@ <h2>SnailFM Settings</h2>
<h4> Mute:</h4><input type="button" id="1" value="ON" style="color:blue"
onclick="toggle(this);">
</form>
<h3>Currently signed in as:</h3>
UNDEFINED
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>

<p id="version"></p>
<div id="notification" class="hidden">
<p id="message"></p>
<button id="close-button" onClick="closeNotification()">
Expand Down Expand Up @@ -277,3 +273,4 @@ <h3>Currently signed in as:</h3>
}
</script>
</body>
</html>
5 changes: 0 additions & 5 deletions lib/render.js

This file was deleted.

16 changes: 8 additions & 8 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ function wait(ms)

// Start the libaries
require('./lib/rpc.js');
console.log("RPC lib init.");


// Loading screen
/// create a global var, wich will keep a reference to out loadingScreen window
Expand All @@ -38,6 +40,7 @@ const createLoadingScreen = () => {
loadingScreen.show();
});
};
console.log("Loading screen ready.");

// Start the main program
let mainWindow;
Expand All @@ -63,28 +66,25 @@ function createWindow () {
loadingScreen.close();
}
mainWindow.show();
autoUpdater.checkForUpdatesAndNotify();
});

mainWindow.on('closed', function () {
mainWindow = null;
});
}

console.log("Main screen ready.");

app.on('ready', () => {
createLoadingScreen();
autoUpdater.checkForUpdatesAndNotify();
console.log("Send check for updates signal");
console.log("Alright, lets go!");
setTimeout(() => {
createWindow();
}, 4500);
})

app.on('window-all-closed', function () {
if (process.platform !== 'darwin') {
app.quit();
}
});


app.on('window-all-closed', function () {
if (process.platform !== 'darwin') {
app.quit();
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SnailFM",
"version": "1.2.2",
"version": "1.2.1",
"description": "SnailFM is a radio station.",
"main": "main.js",
"repository": {
Expand Down

0 comments on commit 0f07e2e

Please sign in to comment.