The more you know, am I right?

This commit is contained in:
Zixaphir 2014-01-09 14:26:09 -07:00
parent 4e56d17d54
commit 259529b6dd
3 changed files with 3 additions and 3 deletions

View File

@ -12768,7 +12768,7 @@
},
navigate: function(e) {
var boardID, path, threadID, view;
if (this.hostname !== 'boards.4chan.org' || /rs\.4chan\.org/.test(window.location)) {
if (this.hostname !== 'boards.4chan.org' || window.location.hostname === 'rs.4chan.org') {
return;
}
path = this.pathname.split('/');

View File

@ -12745,7 +12745,7 @@
},
navigate: function(e) {
var boardID, path, threadID, view;
if (this.hostname !== 'boards.4chan.org' || /rs\.4chan\.org/.test(window.location)) {
if (this.hostname !== 'boards.4chan.org' || window.location.hostname === 'rs.4chan.org') {
return;
}
path = this.pathname.split('/');

View File

@ -357,7 +357,7 @@ Main =
return
navigate: (e) ->
return if @hostname isnt 'boards.4chan.org' or /rs\.4chan\.org/.test window.location
return if @hostname isnt 'boards.4chan.org' or window.location.hostname is 'rs.4chan.org'
path = @pathname.split '/'
path.shift() if path[0] is ''