Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
fa4da5ce
Commit
fa4da5ce
authored
Feb 05, 2021
by
Dominik Hebeler
Browse files
adding event listener instead of setting it
parent
93906289
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
resources/js/scriptResultPage.js
View file @
fa4da5ce
...
...
@@ -21,7 +21,7 @@ let link, newtab, top;
function
botProtection
()
{
document
.
querySelectorAll
(
"
.result a
"
).
forEach
((
element
)
=>
{
element
.
onclick
=
(
e
)
=>
{
element
.
addEventListener
(
"
click
"
,
e
=>
{
link
=
element
.
href
;
newtab
=
false
;
top
=
false
;
...
...
@@ -49,7 +49,7 @@ function botProtection() {
}
});
return
newtab
;
}
}
);
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment