thread_autoupdater.js: fix for threads with only an op
This commit is contained in:
parent
309d8698d4
commit
9298c1a674
|
@ -71,7 +71,7 @@ $().ready(() => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
const dom = parser.parseFromString(await res.text(), "text/html")
|
const dom = parser.parseFromString(await res.text(), "text/html")
|
||||||
const livePCList = Array.prototype.map.apply(dom.querySelectorAll(`#thread_${threadPost.getInfo().getThreadId()} > .postcontainer`), [ pc => LCNPostContainer.assign(pc) ])
|
const livePCList = Array.prototype.map.apply(dom.querySelectorAll(`#thread_${threadPost.getInfo().getThreadId()} > .postcontainer`), [ pc => LCNPostContainer.assign(pc) ])
|
||||||
const documentPCList = threadReplies.map(p => p.getParent())
|
const documentPCList = [ threadPost, ...threadReplies.map(p => p.getParent()) ]
|
||||||
const missingPCList = []
|
const missingPCList = []
|
||||||
|
|
||||||
for (const pc of livePCList.reverse()) {
|
for (const pc of livePCList.reverse()) {
|
||||||
|
|
Loading…
Reference in New Issue