diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index f1a9a6c6c..154beee3a 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -2454,7 +2454,7 @@ if (!navigator.onLine) { return; } - if (!Index.root.parentElement) { + if (d.readyState !== 'loading' && Index.root.parentElement) { board = $('.board'); $.replace(board, Index.root); } diff --git a/builds/crx/script.js b/builds/crx/script.js index 9987728d6..da0e6ad04 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -2464,7 +2464,7 @@ if (!navigator.onLine) { return; } - if (!Index.root.parentElement) { + if (d.readyState !== 'loading' && Index.root.parentElement) { board = $('.board'); $.replace(board, Index.root); } diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 3f6882a1c..27d47a0fa 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -203,7 +203,7 @@ Index = update: (pageNum) -> return unless navigator.onLine - unless Index.root.parentElement + if d.readyState isnt 'loading' and Index.root.parentElement board = $ '.board' $.replace board, Index.root Index.req?.abort()