From 19518aed607718fc6106e1cf34e59cf18af6bedf Mon Sep 17 00:00:00 2001 From: gorhill Date: Mon, 11 Jan 2016 01:38:29 -0500 Subject: [PATCH] this fixes #1204 --- platform/chromium/manifest.json | 2 +- platform/chromium/vapi-client.js | 2 +- platform/opera/manifest.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/chromium/manifest.json b/platform/chromium/manifest.json index 5178890b4..7ae0a06db 100644 --- a/platform/chromium/manifest.json +++ b/platform/chromium/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "uBlock Origin", - "version": "1.5.5", + "version": "1.5.6", "default_locale": "en", "description": "__MSG_extShortDesc__", diff --git a/platform/chromium/vapi-client.js b/platform/chromium/vapi-client.js index 5b9d3bc6a..55f658f0c 100644 --- a/platform/chromium/vapi-client.js +++ b/platform/chromium/vapi-client.js @@ -32,7 +32,7 @@ // https://github.com/gorhill/uBlock/issues/1124 // Looks like `contentType` is on track to be standardized: // https://dom.spec.whatwg.org/#concept-document-content-type -if ( (document.contentType || '').startsWith('image/') ) { +if ( (document.contentType || '').lastIndexOf('image/', 0) === 0 ) { return; } diff --git a/platform/opera/manifest.json b/platform/opera/manifest.json index 5aa15694d..a6a232cf5 100644 --- a/platform/opera/manifest.json +++ b/platform/opera/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "uBlock Origin", - "version": "1.5.5", + "version": "1.5.6", "default_locale": "en", "description": "__MSG_extShortDesc__",