1
0
mirror of https://github.com/aureliendavid/rsspreview.git synced 2025-08-22 11:18:37 +00:00

extension.getUrl() is deprecated

This commit is contained in:
Aurelien David 2022-02-16 16:14:09 +01:00
parent 5a33e6eda2
commit 177aacd95c

View File

@ -214,7 +214,7 @@
let extimgs = el.getElementsByClassName('extImg');
for (let i = 0; i < extimgs.length; i++)
extimgs[i].src = chrome.extension.getURL(
extimgs[i].src = chrome.runtime.getURL(
extimgs[i].attributes['data-src'].nodeValue
);
}
@ -243,7 +243,7 @@
let css = doc.createElement('link');
css.setAttribute('rel', 'stylesheet');
css.setAttribute('href', chrome.extension.getURL('preview.css'));
css.setAttribute('href', chrome.runtime.getURL('preview.css'));
doc.head.appendChild(css);
if (options.enableCss && options.customCss) {
@ -285,7 +285,7 @@
let feed_url = window.location.href;
let preview = makepreviewhtml();
xhrdoc(chrome.extension.getURL('rss.xsl'), 'xml', xsl_xml => {
xhrdoc(chrome.runtime.getURL('rss.xsl'), 'xml', xsl_xml => {
applyxsl(feedNode, xsl_xml, preview.getElementById('feedBody'), preview);
// replace the content with the preview document