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