diff --git a/inject.js b/inject.js
index 1ce2118..f9d50d3 100644
--- a/inject.js
+++ b/inject.js
@@ -1,4 +1,4 @@
-chrome.extension.sendMessage({}, function(response) {
+chrome.runtime.sendMessage({}, function(response) {
var tc = {
settings: {
speed: 1.0, // default 1x
@@ -117,7 +117,7 @@ chrome.extension.sendMessage({}, function(response) {
var shadow = wrapper.createShadowRoot();
var shadowTemplate = `
@@ -213,7 +213,7 @@ chrome.extension.sendMessage({}, function(response) {
defineVideoController();
} else {
var link = document.createElement('link');
- link.href = chrome.extension.getURL('inject.css');
+ link.href = chrome.runtime.getURL('inject.css');
link.type = 'text/css';
link.rel = 'stylesheet';
document.head.appendChild(link);
diff --git a/popup.js b/popup.js
index 13d16b1..a60b107 100644
--- a/popup.js
+++ b/popup.js
@@ -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() {