Skip to content
Snippets Groups Projects
Commit c5257328 authored by echicken's avatar echicken :chicken:
Browse files

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

parent 5a752ee3
Branches
Tags
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment