Use CrossOrigin.json for Link Title.
This commit is contained in:
parent
5afb980a38
commit
f86d947377
@ -111,7 +111,7 @@ Embedding =
|
|||||||
if service.queue.length >= service.batchSize
|
if service.queue.length >= service.batchSize
|
||||||
Embedding.flushTitles service
|
Embedding.flushTitles service
|
||||||
else
|
else
|
||||||
unless $.cache service.api(uid), (-> Embedding.cb.title @, data), {responseType: 'json'}
|
unless CrossOrigin.json service.api(uid), (-> Embedding.cb.title @, data)
|
||||||
$.extend link, <%= html('[${key}] <span class="warning">Title Link Blocked</span> (are you using NoScript?)</a>') %>
|
$.extend link, <%= html('[${key}] <span class="warning">Title Link Blocked</span> (are you using NoScript?)</a>') %>
|
||||||
|
|
||||||
flushTitles: (service) ->
|
flushTitles: (service) ->
|
||||||
@ -121,7 +121,7 @@ Embedding =
|
|||||||
cb = ->
|
cb = ->
|
||||||
Embedding.cb.title @, data for data in queue
|
Embedding.cb.title @, data for data in queue
|
||||||
return
|
return
|
||||||
unless $.cache service.api(data.uid for data in queue), cb, {responseType: 'json'}
|
unless CrossOrigin.json service.api(data.uid for data in queue), cb
|
||||||
for data in queue
|
for data in queue
|
||||||
$.extend data.link, <%= html('[${data.key}] <span class="warning">Title Link Blocked</span> (are you using NoScript?)</a>') %>
|
$.extend data.link, <%= html('[${data.key}] <span class="warning">Title Link Blocked</span> (are you using NoScript?)</a>') %>
|
||||||
return
|
return
|
||||||
|
|||||||
@ -42,6 +42,12 @@
|
|||||||
return '// @connect ' + archive.domain;
|
return '// @connect ' + archive.domain;
|
||||||
}).join('\n')
|
}).join('\n')
|
||||||
%>
|
%>
|
||||||
|
// @connect api.clyp.it
|
||||||
|
// @connect api.dailymotion.com
|
||||||
|
// @connect api.github.com
|
||||||
|
// @connect soundcloud.com
|
||||||
|
// @connect vimeo.com
|
||||||
|
// @connect www.googleapis.com
|
||||||
// @connect *
|
// @connect *
|
||||||
<%=
|
<%=
|
||||||
meta.grants.map(function(grant) {
|
meta.grants.map(function(grant) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user