diff --git a/src/web/app/common/scripts/i.js b/src/web/app/common/scripts/i.js index 66ce37d506..20c33c6402 100644 --- a/src/web/app/common/scripts/i.js +++ b/src/web/app/common/scripts/i.js @@ -2,7 +2,7 @@ const riot = require('riot'); module.exports = me => { riot.mixin('i', { - init: () => { + init: function() { this.I = me; this.SIGNIN = me != null; diff --git a/src/web/app/desktop/scripts/user-preview.js b/src/web/app/desktop/scripts/user-preview.js index 8351f0e75a..1964384fde 100644 --- a/src/web/app/desktop/scripts/user-preview.js +++ b/src/web/app/desktop/scripts/user-preview.js @@ -1,7 +1,7 @@ const riot = require('riot'); riot.mixin('user-preview', { - init: () => { + init: function() { const scan = () => { this.root.querySelectorAll('[data-user-preview]:not([data-user-preview-attached])') .forEach(attach.bind(this));