fix: stabilise reading follow on long editions
This commit is contained in:
@@ -2897,6 +2897,12 @@ const WHOAMI_FORCE_LOCALHOST = (import.meta.env.PUBLIC_WHOAMI_FORCE_LOCALHOST ??
|
||||
return cand;
|
||||
}
|
||||
|
||||
// Éditions longues : ne jamais afficher une section
|
||||
// avant qu'elle ait réellement franchi la ligne de capture.
|
||||
if (!isGlossaryEdition) {
|
||||
return cand;
|
||||
}
|
||||
|
||||
return cand || H2[0] || null;
|
||||
}
|
||||
|
||||
@@ -2944,6 +2950,10 @@ const WHOAMI_FORCE_LOCALHOST = (import.meta.env.PUBLIC_WHOAMI_FORCE_LOCALHOST ??
|
||||
}
|
||||
}
|
||||
|
||||
if (!isGlossaryEdition) {
|
||||
return cand;
|
||||
}
|
||||
|
||||
return cand || scoped[0] || null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user