Skip to content

Commit

Permalink
Fix "getKeyNames" function not returning a promise
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafostar committed Sep 15, 2019
1 parent 3f40f88 commit dfb74a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion keymap.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ module.exports =

getNamesArray: function()
{
return Object.values(keyNames);
return new Promise((resolve) =>
{
resolve(Object.values(keyNames));
});
}
}

Expand Down

0 comments on commit dfb74a0

Please sign in to comment.