Merge branch '0.0.9-alpha' of github.com:NuSkooler/enigma-bbs into user-interruptions
This commit is contained in:
@@ -47,6 +47,11 @@ exports.MenuModule = class MenuModule extends PluginModule {
|
||||
const mciData = {};
|
||||
let pausePosition;
|
||||
|
||||
const hasArt = () => {
|
||||
return _.isString(self.menuConfig.art) ||
|
||||
(Array.isArray(self.menuConfig.art) && _.has(self.menuConfig.art[0], 'acs'));
|
||||
};
|
||||
|
||||
async.series(
|
||||
[
|
||||
function beforeArtInterrupt(callback) {
|
||||
@@ -56,7 +61,7 @@ exports.MenuModule = class MenuModule extends PluginModule {
|
||||
return self.beforeArt(callback);
|
||||
},
|
||||
function displayMenuArt(callback) {
|
||||
if(!_.isString(self.menuConfig.art)) {
|
||||
if(!hasArt()) {
|
||||
return callback(null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user