Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
this fixes #862
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Feb 22, 2015
1 parent 9d166f1 commit 824c499
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion platform/chromium/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,

"name": "µBlock",
"version": "0.8.8.2",
"version": "0.8.8.3",

"default_locale": "en",
"description": "__MSG_extShortDesc__",
Expand Down
6 changes: 6 additions & 0 deletions platform/chromium/vapi-background.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,15 @@ vAPI.net.registerListeners = function() {
}
var path = µburi.path;
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 ) {
details.type = 'object';
return;
}

var ext = path.slice(pos) + '.';
if ( '.eot.ttf.otf.svg.woff.woff2.'.indexOf(ext) !== -1 ) {
details.type = 'font';
Expand Down

0 comments on commit 824c499

Please sign in to comment.