1
0
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:
Ilya Kreymer 2020-06-08 14:26:41 -07:00
parent 3c53c2731b
commit d01b5354cb

View File

@ -11,9 +11,10 @@
});
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) {
return response.json();
})