mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-09-21 03:42:30 +12:00
this fixes #862
This commit is contained in:
parent
754aa6cd8b
commit
ca8d24fb08
1 changed files with 6 additions and 0 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue