From eea39f7b56a39a87fdf64fc4d6320bc8ca359986 Mon Sep 17 00:00:00 2001 From: imfunny <36105478+imfunniee@users.noreply.github.com> Date: Mon, 13 May 2019 09:40:24 +0530 Subject: [PATCH] fixed issue #12 --- build.js | 28 ++++++++++++++-------------- config.json | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/build.js b/build.js index 20d7671..d030f22 100644 --- a/build.js +++ b/build.js @@ -18,13 +18,13 @@ function populateCSS(){ if (err) throw err; fs.appendFile('index.css', dark, function (err) { if (err) throw err; - fs.readFile("config.json", function (err , data) { - if (err) throw err; - data = JSON.parse(data); - data[0].theme = "dark"; - fs.writeFile('config.json', JSON.stringify(data, null, ' '), function(err){ - if (err) throw err; - }); + }); + fs.readFile("config.json", function (err , data) { + if (err) throw err; + data = JSON.parse(data); + data[0].theme = "dark"; + fs.writeFile('config.json', JSON.stringify(data, null, ' '), function(err){ + if (err) throw err; }); }); }); @@ -33,13 +33,13 @@ function populateCSS(){ if (err) throw err; fs.appendFile('index.css', light, function (err) { if (err) throw err; - fs.readFile("config.json", function (err , data) { - if (err) throw err; - data = JSON.parse(data); - data[0].theme = "light"; - fs.writeFile('config.json', JSON.stringify(data, null, ' '), function(err){ - if (err) throw err; - }); + }); + fs.readFile("config.json", function (error , data) { + if (error) throw err; + data = JSON.parse(data); + data[0].theme = "light"; + fs.writeFile('config.json', JSON.stringify(data, null, ' '), function(error){ + if (error) throw err; }); }); }); diff --git a/config.json b/config.json index 94355ce..f654910 100644 --- a/config.json +++ b/config.json @@ -3,7 +3,7 @@ "username": null, "name": null, "userimg": null, - "background": null, + "background": "https://images.unsplash.com/photo-1553748024-d1b27fb3f960?w=1450", "theme": "light" } ] \ No newline at end of file