diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 91e08a981..e1f891e25 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -11898,10 +11898,8 @@ if (g.VIEW === 'catalog' || g.BOARD.ID === 'f') { return; } - ({ - ready: function() { - return $.on(window, 'popstate', Navigate.popstate); - } + $.ready(function() { + return $.on(window, 'popstate', Navigate.popstate); }); Thread.callbacks.push({ name: 'Navigate', diff --git a/builds/crx/script.js b/builds/crx/script.js index 70499ee45..5ce34b6a2 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -11887,10 +11887,8 @@ if (g.VIEW === 'catalog' || g.BOARD.ID === 'f') { return; } - ({ - ready: function() { - return $.on(window, 'popstate', Navigate.popstate); - } + $.ready(function() { + return $.on(window, 'popstate', Navigate.popstate); }); Thread.callbacks.push({ name: 'Navigate', diff --git a/src/General/Navigate.coffee b/src/General/Navigate.coffee index 02a1c60fe..6b47aea2a 100644 --- a/src/General/Navigate.coffee +++ b/src/General/Navigate.coffee @@ -3,7 +3,7 @@ Navigate = return if g.VIEW is 'catalog' or g.BOARD.ID is 'f' # blink/webkit throw a popstate on page load. Not what we want. - ready: -> + $.ready -> $.on window, 'popstate', Navigate.popstate Thread.callbacks.push