Skip to content
Snippets Groups Projects
Commit 70be4444 authored by scmoritz's avatar scmoritz
Browse files

replace function with const

parent 1c5ff3d1
No related branches found
No related tags found
1 merge request!57Cleanup
import m from 'mithril';
// Link welcher zur Registrierung des Kaffe- und Bierautomaten.
function getLink() {
return ' https://www.amiv.ethz.ch/dienste/rfid-register';
}
const rfidLink = 'https://www.amiv.ethz.ch/dienste/rfid-register';
module.exports = {
view() {
......@@ -54,7 +51,7 @@ module.exports = {
]),
m('pre', [
'*= Für den Gratisbezug von Bier und Kaffee ist eine einmalige Registrierung der Legi nötig. Diese kann ',
m('a', { href: getLink() }, 'hier'),
m('a', { href: rfidLink }, 'hier'),
' einfach online getätigt werden.',
]),
m('h4', 'Zugang'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment