Skip to content
Browse files

Ignore empty content type

  • Loading branch information...
1 parent 39c9a0f commit 70c0c99620fc36f23df1cf199bb708afad05c941 Tomás Senart committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/background.js
View
2 js/background.js
@@ -135,7 +135,7 @@
chrome.webRequest.onCompleted.addListener(function(details) {
var language, contentType = getContentTypeFromHeaders(details.responseHeaders);
- if (contentType !== 'html') {
+ if (contentType !== null && contentType !== 'html') {
if (language = detectLanguage(contentType, details.url)) {
chrome.tabs.insertCSS(details.tabId, { file: 'css/reset.css' });
chrome.tabs.insertCSS(details.tabId, { file: 'css/main.css' });

0 comments on commit 70c0c99

Please sign in to comment.
Something went wrong with that request. Please try again.