Fix 'Redirect to HTTPS'. #885

This commit is contained in:
ccd0 2017-07-15 03:26:56 -07:00
parent 57557c05db
commit 8abb48273f

View File

@ -72,7 +72,7 @@ Main =
items['previousversion'] = undefined
($.getSync or $.get) items, (items) ->
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
$.asap docSet, ->