mirror of
https://github.com/aureliendavid/rsspreview.git
synced 2025-08-22 19:28:39 +00:00
extension.getUrl() is deprecated
This commit is contained in:
parent
5a33e6eda2
commit
177aacd95c
@ -214,7 +214,7 @@
|
|||||||
let extimgs = el.getElementsByClassName('extImg');
|
let extimgs = el.getElementsByClassName('extImg');
|
||||||
|
|
||||||
for (let i = 0; i < extimgs.length; i++)
|
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
|
extimgs[i].attributes['data-src'].nodeValue
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -243,7 +243,7 @@
|
|||||||
|
|
||||||
let css = doc.createElement('link');
|
let css = doc.createElement('link');
|
||||||
css.setAttribute('rel', 'stylesheet');
|
css.setAttribute('rel', 'stylesheet');
|
||||||
css.setAttribute('href', chrome.extension.getURL('preview.css'));
|
css.setAttribute('href', chrome.runtime.getURL('preview.css'));
|
||||||
doc.head.appendChild(css);
|
doc.head.appendChild(css);
|
||||||
|
|
||||||
if (options.enableCss && options.customCss) {
|
if (options.enableCss && options.customCss) {
|
||||||
@ -285,7 +285,7 @@
|
|||||||
let feed_url = window.location.href;
|
let feed_url = window.location.href;
|
||||||
let preview = makepreviewhtml();
|
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);
|
applyxsl(feedNode, xsl_xml, preview.getElementById('feedBody'), preview);
|
||||||
|
|
||||||
// replace the content with the preview document
|
// replace the content with the preview document
|
||||||
|
Loading…
Reference in New Issue
Block a user