mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-26 19:47:20 +00:00
Fix possible bug (#4122)
Check for outstanding tasks to execute before the task in question seems to have invalid checks.
This commit is contained in:
parent
08d9c90dc5
commit
adcef4f803
@ -2596,7 +2596,8 @@ $tw.boot.isStartupTaskEligible = function(taskModule) {
|
||||
for(t=0; t<remaining.length; t++) {
|
||||
var task = remaining[t];
|
||||
if(task.before && task.before.indexOf(name) !== -1) {
|
||||
if($tw.boot.doesTaskMatchPlatform(task) || (task.name && $tw.boot.disabledStartupModules.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)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user