Remove link to HTTP 4chan on links not embeddable on HTTPS. #496
This commit is contained in:
parent
bd73d49fca
commit
09a7bc6026
@ -43,15 +43,9 @@ Embedding =
|
|||||||
embed: (data) ->
|
embed: (data) ->
|
||||||
{key, uid, options, link, post} = data
|
{key, uid, options, link, post} = data
|
||||||
{href} = link
|
{href} = link
|
||||||
$.addClass link, key.toLowerCase()
|
return if Embedding.types[key].httpOnly and location.protocol isnt 'http:'
|
||||||
|
|
||||||
if Embedding.types[key].httpOnly and location.protocol isnt 'http:'
|
$.addClass link, key.toLowerCase()
|
||||||
embed = $.el 'a',
|
|
||||||
href: "http://boards.4chan.org/#{post.board}/thread/#{post.thread}#p#{post}"
|
|
||||||
textContent: '(HTTP)'
|
|
||||||
title: "#{key} does not support HTTPS."
|
|
||||||
$.after link, [$.tn(' '), embed]
|
|
||||||
return
|
|
||||||
|
|
||||||
embed = $.el 'a',
|
embed = $.el 'a',
|
||||||
className: 'embedder'
|
className: 'embedder'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user