Disable 'Redirect to HTTPS' outside of 4chan for now.
This commit is contained in:
parent
d1d448d93e
commit
86e4e06299
@ -80,7 +80,7 @@ Main =
|
||||
items[key] = undefined for key of Conf
|
||||
items['previousversion'] = undefined
|
||||
($.getSync or $.get) items, (items) ->
|
||||
if !$.perProtocolSettings and (items['Redirect to HTTPS'] ? Conf['Redirect to HTTPS']) and location.protocol isnt 'https:'
|
||||
if !$.perProtocolSettings and /\.4chan\.org$/.test(location.hostname) and (items['Redirect to HTTPS'] ? Conf['Redirect to HTTPS']) and location.protocol isnt 'https:'
|
||||
location.replace('https:' + location.host + location.pathname + location.search + location.hash)
|
||||
return
|
||||
$.asap docSet, ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user