mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-05-11 18:09:50 +08:00
prevent SyntaxError: Identifier 'targetEl' has already been declared
This commit is contained in:
@@ -146,7 +146,7 @@ async function mainLoop () {
|
||||
if (targetJobIndex > 0) {
|
||||
// scroll that target element into view
|
||||
await page.evaluate(`
|
||||
const targetEl = document.querySelector("ul.rec-job-list").children[${targetJobIndex}]
|
||||
targetEl = document.querySelector("ul.rec-job-list").children[${targetJobIndex}]
|
||||
targetEl.scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: ${Math.random() > 0.5 ? '\'center\'' : '\'end\''}
|
||||
|
||||
Reference in New Issue
Block a user