1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00
This commit is contained in:
gorhill 2015-02-22 09:13:08 -05:00
parent 9d166f1fa1
commit 824c499f5c
2 changed files with 7 additions and 1 deletions

View File

@ -2,7 +2,7 @@
"manifest_version": 2, "manifest_version": 2,
"name": "µBlock", "name": "µBlock",
"version": "0.8.8.2", "version": "0.8.8.3",
"default_locale": "en", "default_locale": "en",
"description": "__MSG_extShortDesc__", "description": "__MSG_extShortDesc__",

View File

@ -449,9 +449,15 @@ vAPI.net.registerListeners = function() {
} }
var path = µburi.path; var path = µburi.path;
var pos = path.lastIndexOf('.'); var pos = path.lastIndexOf('.');
// https://github.com/gorhill/uBlock/issues/862
// If no transposition possible, transpose to `object` as per
// Chromium bug 410382 (see below)
if ( pos === -1 ) { if ( pos === -1 ) {
details.type = 'object';
return; return;
} }
var ext = path.slice(pos) + '.'; var ext = path.slice(pos) + '.';
if ( '.eot.ttf.otf.svg.woff.woff2.'.indexOf(ext) !== -1 ) { if ( '.eot.ttf.otf.svg.woff.woff2.'.indexOf(ext) !== -1 ) {
details.type = 'font'; details.type = 'font';