mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Fix regression in logger's summary pane
Related feedback:
- 59c9a34d34 (commitcomment-35226346)
This commit is contained in:
parent
1cb77aaea2
commit
28aee88a7b
1 changed files with 3 additions and 2 deletions
|
@ -1444,8 +1444,9 @@ const reloadTab = function(ev) {
|
|||
const match = /#@?#/.exec(filter);
|
||||
if ( match === null ) { return; }
|
||||
const fragment = document.createDocumentFragment();
|
||||
fragment.appendChild(document.createTextNode(match[0]));
|
||||
const selector = filter.slice(match.index + match[0].length);
|
||||
const pos = match.index + match[0].length;
|
||||
fragment.appendChild(document.createTextNode(filter.slice(0, pos)));
|
||||
const selector = filter.slice(pos);
|
||||
const span = document.createElement('span');
|
||||
span.className = 'filter';
|
||||
span.textContent = selector;
|
||||
|
|
Loading…
Reference in a new issue