1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00

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

View File

@ -2596,8 +2596,7 @@ $tw.boot.isStartupTaskEligible = function(taskModule) {
for(t=0; t<remaining.length; t++) { for(t=0; t<remaining.length; t++) {
var task = remaining[t]; var task = remaining[t];
if(task.before && task.before.indexOf(name) !== -1) { 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; return false;
} }
} }