From dfb74a06222a4c277c3f625441378128bb901056 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Sun, 15 Sep 2019 17:08:01 +0200 Subject: [PATCH] Fix "getKeyNames" function not returning a promise --- keymap.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/keymap.js b/keymap.js index 9ae2004..dae1e25 100644 --- a/keymap.js +++ b/keymap.js @@ -12,7 +12,10 @@ module.exports = getNamesArray: function() { - return Object.values(keyNames); + return new Promise((resolve) => + { + resolve(Object.values(keyNames)); + }); } }