Explorar o código

Give default title

Johannes Zellner %!s(int64=11) %!d(string=hai) anos
pai
achega
e1c94285bc
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/settings.js

+ 3 - 1
src/settings.js

@@ -35,6 +35,8 @@ function put(settings, callback) {
 function get(callback) {
     g_settings.find({ type: 'frontend' }).toArray(function (error, result) {
         if (error) return callback(error);
-        callback(null, result[0] ? result[0].value : {});
+        callback(null, result[0] ? result[0].value : {
+            title: 'Things'
+        });
     });
 }