Browse Source

fix greetings not updating date on exit

Adphi 1 year ago
parent
commit
1745aa185a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      js/index.js

+ 3 - 1
js/index.js

@@ -32,7 +32,9 @@
           });
         }
       }, {
-        greetings: '[[;green;]' + new Date().toString().slice(0, 24) + "]\n\nPress [[;#ff5e99;]Enter] for more information on [[;#009ae3;]occ] commands.\n",
+        greetings: function (callback) {
+          callback('[[;green;]' + new Date().toString().slice(0, 24) + "]\n\nPress [[;#ff5e99;]Enter] for more information on [[;#009ae3;]occ] commands.\n")
+        },
         name: 'occ',
         prompt: 'occ $ ',
         completion: response,