Fix test errors

This commit is contained in:
Phillip Thelen
2018-11-27 15:39:59 +01:00
parent cde279e489
commit 024e93e89b
3 changed files with 3 additions and 4 deletions

View File

@@ -250,9 +250,9 @@ export default {
},
mounted () {
const links = this.$refs.markdownContainer.getElementsByTagName('a');
for (var i = 0; i < links.length; i++) {
for (let i = 0; i < links.length; i++) {
const link = links[i];
links[i].onclick = (event) => {
links[i].onclick = () => {
event.preventDefault();
this.$router.push({ path: link.getAttribute('href')});
};