fix: Unexpected unnamed function warning
This commit is contained in:
@@ -33,7 +33,7 @@ export const openExternalLinksInNewTab = () => {
|
||||
const isOnArticlePage =
|
||||
isSameHost && document.querySelector('#cw-article-content') !== null;
|
||||
|
||||
document.addEventListener('click', function (event) {
|
||||
document.addEventListener('click', event => {
|
||||
if (!isOnArticlePage) return;
|
||||
|
||||
// Some of the links come wrapped in strong tag through prosemirror
|
||||
|
||||
Reference in New Issue
Block a user