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
|
||||
Embedding.flushTitles service
|
||||
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>') %>
|
||||
|
||||
flushTitles: (service) ->
|
||||
@ -121,7 +121,7 @@ Embedding =
|
||||
cb = ->
|
||||
Embedding.cb.title @, data for data in queue
|
||||
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
|
||||
$.extend data.link, <%= html('[${data.key}] <span class="warning">Title Link Blocked</span> (are you using NoScript?)</a>') %>
|
||||
return
|
||||
|
||||
@ -42,6 +42,12 @@
|
||||
return '// @connect ' + archive.domain;
|
||||
}).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 *
|
||||
<%=
|
||||
meta.grants.map(function(grant) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user