User:Bosco/Unsigned helper.js: Difference between revisions
From Test Wiki
Content deleted Content added
stop script from loading without editor; add support for mw:Extension:CodeMirror |
findRevisionWhenTextAdded: testFunc: better handling of results of LazyFullRevisionsLoader.loadContent |
||
| Line 330: | Line 330: | ||
this.#progressCallback(progressInfo); |
this.#progressCallback(progressInfo); |
||
const candidateFullRevision = await this.#contentLoader.loadContent(candidateIndex); |
const candidateFullRevision = await this.#contentLoader.loadContent(candidateIndex); |
||
if (candidateFullRevision == undefined) { |
if (candidateFullRevision?.slots?.main?.content == undefined) { |
||
return undefined; |
return undefined; |
||
} |
} |
||