mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 14:44:40 +02:00
Art asset ACS conditional cleanup: Make more general purpose
This commit is contained in:
parent
0f35b0c58e
commit
b3ec97cc5c
3 changed files with 11 additions and 5 deletions
|
@ -49,13 +49,18 @@ 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 beforeDisplayArt(callback) {
|
||||
self.beforeArt(callback);
|
||||
},
|
||||
function displayMenuArt(callback) {
|
||||
if(!_.isString(self.menuConfig.art)) {
|
||||
if(!hasArt()) {
|
||||
return callback(null);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue