Replace chrome.extension with chrome.runtime

The messaging APIs in `extension` module are deprecated in favor of
the equivalent APIs in the `runtime` module.

Sources:
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/extension
https://developer.chrome.com/extensions/extension#methods
This commit is contained in:
codebicycle
2017-10-03 19:14:37 +03:00
committed by Ilya Grigorik
parent 194fcc1076
commit ae778d2901
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
document.addEventListener('DOMContentLoaded', function () {
document.querySelector('#config').addEventListener('click', function() {
window.open(chrome.extension.getURL("options.html"));
window.open(chrome.runtime.getURL("options.html"));
});
document.querySelector('#about').addEventListener('click', function() {