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
7e53f9bb
Commit
7e53f9bb
authored
Feb 05, 2021
by
Dominik Hebeler
Browse files
prevent double event listener
parent
171f8c24
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
resources/js/scriptResultPage.js
View file @
7e53f9bb
...
...
@@ -21,7 +21,7 @@ let link, newtab, top;
function
botProtection
()
{
document
.
querySelectorAll
(
"
.result a
"
).
forEach
((
element
)
=>
{
element
.
addEventListener
(
"
click
"
,
e
=>
{
element
.
on
click
=
e
=>
{
link
=
element
.
href
;
newtab
=
false
;
top
=
false
;
...
...
@@ -48,7 +48,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