diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..045c879c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +content-config.js \ No newline at end of file diff --git a/content.js b/content.js index cbfad32f..0a37e502 100644 --- a/content.js +++ b/content.js @@ -74,7 +74,7 @@ function sponsorsLookup(id) { let xmlhttp = new XMLHttpRequest(); //check database for sponsor times - xmlhttp.open('GET', 'http://localhost/api/getVideoSponsorTimes?videoID=' + id, true); + xmlhttp.open('GET', serverAddresss + "/api/getVideoSponsorTimes?videoID=" + id, true); xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { diff --git a/manifest.json b/manifest.json index eec69d12..73259e2f 100644 --- a/manifest.json +++ b/manifest.json @@ -8,6 +8,7 @@ "https://*.youtube.com/*" ], "js": [ + "content-config.js", "content.js" ] }