1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-14 15:02:27 +02:00

Fix regression in logger's summary pane

Related feedback:
- 59c9a34d34 (commitcomment-35226346)
This commit is contained in:
Raymond Hill 2019-09-25 06:14:43 -04:00
parent 1cb77aaea2
commit 28aee88a7b
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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;