mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
new transclusions: use urn:embeds:<url> for embeds resource lookup instead of old vi_/ prefix, as per ukwa/ukwa-pywb#50
This commit is contained in:
parent
3c53c2731b
commit
d01b5354cb
@ -11,9 +11,10 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
function loadTransclusions() {
|
function loadTransclusions() {
|
||||||
var viUrl = window.location.href.replace("mp_", "vi_");
|
//var viUrl = window.location.href.replace("mp_", "vi_");
|
||||||
|
var embedsUrl = wbinfo.prefix + wbinfo.timestamp + "id_/urn:embeds:" + wbinfo.url;
|
||||||
|
|
||||||
window.fetch(viUrl)
|
window.fetch(embedsUrl)
|
||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
return response.json();
|
return response.json();
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user