chrome.extension.getURL is deprecated

This commit is contained in:
tophf 2017-04-04 07:33:17 +03:00
parent f47b1438dd
commit 7f0fd4f6f6

View File

@ -289,7 +289,7 @@ function acmeEventListener(event) {
el.selectedIndex = 0; el.selectedIndex = 0;
break; break;
} }
var url = chrome.extension.getURL("codemirror/theme/" + value + ".css"); var url = chrome.runtime.getURL("codemirror/theme/" + value + ".css");
if (themeLink.href == url) { // preloaded in initCodeMirror() if (themeLink.href == url) { // preloaded in initCodeMirror()
break; break;
} }