fix: Unexpected unnamed function warning

This commit is contained in:
iamsivin
2024-07-25 19:26:36 +05:30
parent 9ef3e8ab74
commit fede03ebe8
+1 -1
View File
@@ -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