mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-07-08 08:21:14 +00:00
Visual Selector - handle small bug where whitespace after the filter caused it to not be visualised
This commit is contained in:
@@ -149,7 +149,7 @@ $(document).ready(function () {
|
|||||||
// @todo In the future paint all that match
|
// @todo In the future paint all that match
|
||||||
for (const c of current_default_xpath) {
|
for (const c of current_default_xpath) {
|
||||||
for (var i = selector_data['size_pos'].length; i !== 0; i--) {
|
for (var i = selector_data['size_pos'].length; i !== 0; i--) {
|
||||||
if (selector_data['size_pos'][i - 1].xpath === c) {
|
if (selector_data['size_pos'][i - 1].xpath.trim() === c.trim()) {
|
||||||
console.log("highlighting " + c);
|
console.log("highlighting " + c);
|
||||||
current_selected_i = i - 1;
|
current_selected_i = i - 1;
|
||||||
highlight_current_selected_i();
|
highlight_current_selected_i();
|
||||||
|
|||||||
Reference in New Issue
Block a user