Fix bug introduced in #4122

Fixes #6579
This commit is contained in:
jeremy@jermolene.com 2022-04-01 11:38:40 +01:00
parent 051b29c5b3
commit bc242cf83a
1 changed files with 1 additions and 2 deletions

View File

@ -2596,8 +2596,7 @@ $tw.boot.isStartupTaskEligible = function(taskModule) {
for(t=0; t<remaining.length; t++) {
var task = remaining[t];
if(task.before && task.before.indexOf(name) !== -1) {
//check if the other task matches the platform and is not disabled
if($tw.boot.doesTaskMatchPlatform(task) || (task.name && $tw.boot.disabledStartupModules.indexOf(task.name) === -1)) {
if($tw.boot.doesTaskMatchPlatform(task) && (!task.name || $tw.boot.disabledStartupModules.indexOf(task.name) === -1)) {
return false;
}
}