Skip to content

Commit

Permalink
Extension does not work after the Netflix fix
Browse files Browse the repository at this point in the history
Correct the mistakes introduced in the previous commit.
  • Loading branch information
tpopela committed Mar 3, 2016
1 parent 7d36204 commit e86c4d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ document.addEventListener('DOMContentLoaded', function () {
// inspired with https://developer.chrome.com/extensions/webRequest
chrome.webRequest.onBeforeSendHeaders.addListener(
function(details) {
if (!detail.url.indexOf("www.netflix.com")) {
if (details.url.indexOf("www.netflix.com") == -1) {
var headers = details.requestHeaders;
var headersLength = headers.length;

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Fedora User Agent",
"description": "Modifies your User-Agent string to contain the name of Fedora Linux distribution.",
"version": "0.0.0.2",
"version": "0.0.0.3",
"permissions": [
"webRequest",
"webRequestBlocking",
Expand Down

0 comments on commit e86c4d7

Please sign in to comment.