mirror of
https://gitee.com/butubb8/blowfish.git
synced 2025-12-05 14:17:50 +08:00
If MDN explicitly warns user not to use them, we probably shouldn't. MDN also states: "Note that inline event handlers are blocked as well[...]You should replace them with addEventListener calls[...]" regarding CSP.
5 lines
148 B
JavaScript
5 lines
148 B
JavaScript
document.getElementById("button_likes") &&
|
|
document.getElementById("button_likes").addEventListener("click", () => {
|
|
process_article();
|
|
});
|