This commit is contained in:
Zixaphir 2014-01-09 14:24:19 -07:00
parent aaf1ee06ee
commit 4e56d17d54
3 changed files with 7 additions and 7 deletions

View File

@ -12768,7 +12768,7 @@
},
navigate: function(e) {
var boardID, path, threadID, view;
if (this.hostname !== 'boards.4chan.org') {
if (this.hostname !== 'boards.4chan.org' || /rs\.4chan\.org/.test(window.location)) {
return;
}
path = this.pathname.split('/');
@ -12776,7 +12776,7 @@
path.shift();
}
boardID = path[0], view = path[1], threadID = path[2];
if (view === 'catalog' || boardID === 'f') {
if (view === 'catalog' || ('f' === boardID || 'f' === g.BOARD.ID)) {
return;
}
if (e) {

View File

@ -12745,7 +12745,7 @@
},
navigate: function(e) {
var boardID, path, threadID, view;
if (this.hostname !== 'boards.4chan.org') {
if (this.hostname !== 'boards.4chan.org' || /rs\.4chan\.org/.test(window.location)) {
return;
}
path = this.pathname.split('/');
@ -12753,7 +12753,7 @@
path.shift();
}
boardID = path[0], view = path[1], threadID = path[2];
if (view === 'catalog' || boardID === 'f') {
if (view === 'catalog' || ('f' === boardID || 'f' === g.BOARD.ID)) {
return;
}
if (e) {

View File

@ -357,13 +357,13 @@ Main =
return
navigate: (e) ->
return if @hostname isnt 'boards.4chan.org'
# Lets have a good idea of what we should we should be expecting for this kind of feature
return if @hostname isnt 'boards.4chan.org' or /rs\.4chan\.org/.test window.location
path = @pathname.split '/'
path.shift() if path[0] is ''
[boardID, view, threadID] = path
return if view is 'catalog' or boardID is 'f'
return if view is 'catalog' or 'f' in [boardID, g.BOARD.ID]
e.preventDefault() if e
history.pushState null, '', @pathname unless @id is 'popState'