From 99aae0dd7715716120ce8fe025f20c9c0d6ea005 Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Fri, 7 May 2021 23:07:13 +0800 Subject: [PATCH] Fix broken shell and cmd --- index.js | 6 +++--- views/partials/dialogue-cmd.handlebars | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index dbb19de..512f5d3 100755 --- a/index.js +++ b/index.js @@ -34,19 +34,19 @@ app.engine("handlebars", hbs({ layoutsDir: path.join(__dirname, "views", "layouts"), defaultLayout: "main", helpers: { - either: (a, b, options) => { + either: function(a, b, options) { if (a || b) { return options.fn(this); } }, filesize: filesize, - octicon: (i, options) => { + octicon: function(i, options) { if (!octicons[i]) { return new handlebars.SafeString(octicons.question.toSVG()); } return new handlebars.SafeString(octicons[i].toSVG()); }, - eachpath: (path, options) => { + eachpath: function (path, options) { if (typeof path != "string") { return ""; } diff --git a/views/partials/dialogue-cmd.handlebars b/views/partials/dialogue-cmd.handlebars index 0ac94fc..70d5f44 100644 --- a/views/partials/dialogue-cmd.handlebars +++ b/views/partials/dialogue-cmd.handlebars @@ -1,6 +1,6 @@