mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-27 04:58:24 +02:00
Merge branch '0.0.9-alpha' of github.com:NuSkooler/enigma-bbs into user-interruptions
This commit is contained in:
commit
36e9356663
84 changed files with 1759 additions and 643 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue