mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-05 10:54:12 +01:00
Add ''
This commit is contained in:
@@ -952,7 +952,7 @@ const liberator = (function () //{{{
|
||||
setTimeout(function () {
|
||||
let elem = buffer.evaluateXPath('//*[@class="tag" and text()="' + tag + '"]').snapshotItem(0);
|
||||
if (elem)
|
||||
window.content.scrollTo(0, elem.getBoundingClientRect().top - 10); // 10px context
|
||||
buffer.scrollTo(0, elem.getBoundingClientRect().top - 10); // 10px context
|
||||
else
|
||||
liberator.dump('no element: ' + '@class="tag" and text()="' + tag + '"\n' );
|
||||
}, 500);
|
||||
|
||||
Reference in New Issue
Block a user