mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
correctly name event variable
This commit is contained in:
@@ -251,8 +251,8 @@ export default {
|
||||
const links = this.$refs.markdownContainer.getElementsByTagName('a');
|
||||
for (let i = 0; i < links.length; i++) {
|
||||
const link = links[i];
|
||||
links[i].onclick = () => {
|
||||
event.preventDefault();
|
||||
links[i].onclick = (ev) => {
|
||||
ev.preventDefault();
|
||||
this.$router.push({ path: link.getAttribute('href')});
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user