Change Site.hostname to '4chan.org' on 4cdn.org also.
This commit is contained in:
parent
8e3517735e
commit
7b5759cc09
@ -9,7 +9,6 @@ Site =
|
|||||||
{hostname} = location
|
{hostname} = location
|
||||||
while hostname and hostname not of Conf['siteProperties']
|
while hostname and hostname not of Conf['siteProperties']
|
||||||
hostname = hostname.replace(/^[^.]*\.?/, '')
|
hostname = hostname.replace(/^[^.]*\.?/, '')
|
||||||
hostname = '4chan.org' if hostname is '4channel.org'
|
|
||||||
if hostname and Conf['siteProperties'][hostname].software of SW
|
if hostname and Conf['siteProperties'][hostname].software of SW
|
||||||
@set hostname
|
@set hostname
|
||||||
cb()
|
cb()
|
||||||
@ -33,4 +32,5 @@ Site =
|
|||||||
set: (@hostname) ->
|
set: (@hostname) ->
|
||||||
@properties = Conf['siteProperties'][@hostname]
|
@properties = Conf['siteProperties'][@hostname]
|
||||||
@software = @properties.software
|
@software = @properties.software
|
||||||
|
@hostname = '4chan.org' if @software is 'yotsuba'
|
||||||
$.extend @, SW[@software]
|
$.extend @, SW[@software]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user