Skip to content

Commit

Permalink
Retrieve sky image on boot, added favicon.ico to the client
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdleun committed Jul 22, 2019
1 parent 7af0239 commit 3ae0362
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Binary file added client/favicon.ico
Binary file not shown.
8 changes: 8 additions & 0 deletions src/electron/components/environment.component.js
Expand Up @@ -4,6 +4,14 @@ const storage = require('electron-json-storage');

let sky = require('./environment/default-image');

storage.get('sky', (error, data) => {
if (error || !data || !data.sky) {
return;
}

sky = data.sky;
});

module.exports.init = function(global) {
global.revertSky = function(cb) {
storage.remove('sky', () => {
Expand Down

0 comments on commit 3ae0362

Please sign in to comment.