Fix race condition causing Index.root to be removed.
This commit is contained in:
parent
d75dcda461
commit
813de2b71b
@ -5126,7 +5126,7 @@
|
|||||||
_ref5.parentNode.remove();
|
_ref5.parentNode.remove();
|
||||||
}
|
}
|
||||||
$.after($.x('child::form/preceding-sibling::hr[1]'), Index.navLinks);
|
$.after($.x('child::form/preceding-sibling::hr[1]'), Index.navLinks);
|
||||||
if (g.VIEW !== 'index') {
|
if (g.VIEW !== 'index' || Index.root.parentElement) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
board = $('.board');
|
board = $('.board');
|
||||||
|
|||||||
@ -5151,7 +5151,7 @@
|
|||||||
_ref5.parentNode.remove();
|
_ref5.parentNode.remove();
|
||||||
}
|
}
|
||||||
$.after($.x('child::form/preceding-sibling::hr[1]'), Index.navLinks);
|
$.after($.x('child::form/preceding-sibling::hr[1]'), Index.navLinks);
|
||||||
if (g.VIEW !== 'index') {
|
if (g.VIEW !== 'index' || Index.root.parentElement) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
board = $('.board');
|
board = $('.board');
|
||||||
|
|||||||
@ -155,7 +155,7 @@ Index =
|
|||||||
$.id('search-box')?.parentNode.remove()
|
$.id('search-box')?.parentNode.remove()
|
||||||
$.after $.x('child::form/preceding-sibling::hr[1]'), Index.navLinks
|
$.after $.x('child::form/preceding-sibling::hr[1]'), Index.navLinks
|
||||||
|
|
||||||
return if g.VIEW isnt 'index'
|
return if g.VIEW isnt 'index' or Index.root.parentElement
|
||||||
|
|
||||||
board = $ '.board'
|
board = $ '.board'
|
||||||
$.replace board, Index.root
|
$.replace board, Index.root
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user