Commit cfd02a91 authored by echicken's avatar echicken 🐔
Browse files

Don't crap out if [files] section empty or missing.

parent 1f52abed
......@@ -7,7 +7,7 @@ function loadSettings(path) {
if (!f.open('r')) throw 'Failed to open bullshit.ini.';
var settings = f.iniGetObject();
settings.colors = f.iniGetObject('colors');
settings.files = f.iniGetObject('files');
settings.files = f.iniGetObject('files') || {};
f.close();
Object.keys(settings.colors).forEach(function (k) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment