Update MenuFlags to work as expected
* 'popParent' has been removed * 'noHistory' now works as expected * Mods that explicitly want noHistory can state such in their constructor()
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
// ENiGMA½
|
||||
const MenuModule = require('./menu_module.js').MenuModule;
|
||||
const Errors = require('../core/enig_error.js').Errors;
|
||||
const ANSI = require('./ansi_term.js');
|
||||
const Config = require('./config.js').get;
|
||||
const { getMessageAreaByTag } = require('./message_area.js');
|
||||
|
||||
@@ -21,6 +20,7 @@ exports.moduleInfo = {
|
||||
exports.getModule = class ShowArtModule extends MenuModule {
|
||||
constructor(options) {
|
||||
super(options);
|
||||
|
||||
this.config = Object.assign({}, _.get(options, 'menuConfig.config'), {
|
||||
extraArgs: options.extraArgs,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user