mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-28 13:36:16 +02:00
Fixed changes from code review
This commit is contained in:
parent
4aed3c059d
commit
abaca6c8ef
4 changed files with 66 additions and 3 deletions
|
@ -105,7 +105,7 @@ exports.MenuModule = class MenuModule extends PluginModule {
|
|||
|
||||
const options = self.menuConfig.config;
|
||||
|
||||
if(artData != null && artData.height != null) {
|
||||
if(!_.isNil(artData) && _.isNumber(artData.height)) {
|
||||
options.startRow = artData.height + 1;
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,7 @@ exports.MenuModule = class MenuModule extends PluginModule {
|
|||
},
|
||||
function displayPauseIfRequested(callback) {
|
||||
if(!self.shouldPause()) {
|
||||
return callback(null);
|
||||
return callback(null, null);
|
||||
}
|
||||
|
||||
if(self.client.term.termHeight > 0 && pausePosition.row > self.client.termHeight) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue