Fix 'Redirect to HTTPS'. #885
This commit is contained in:
parent
57557c05db
commit
8abb48273f
@ -72,7 +72,7 @@ Main =
|
|||||||
items['previousversion'] = undefined
|
items['previousversion'] = undefined
|
||||||
($.getSync or $.get) items, (items) ->
|
($.getSync or $.get) items, (items) ->
|
||||||
if (items['Redirect to HTTPS'] ? Conf['Redirect to HTTPS']) and location.protocol isnt 'https:'
|
if (items['Redirect to HTTPS'] ? Conf['Redirect to HTTPS']) and location.protocol isnt 'https:'
|
||||||
location.protocol = 'https:'
|
location.replace('https:' + location.host + location.pathname + location.search + location.hash)
|
||||||
return
|
return
|
||||||
$.asap docSet, ->
|
$.asap docSet, ->
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user