Skip to content
Snippets Groups Projects
Commit c7219690 authored by Daniel's avatar Daniel
Browse files

bugfix: WebApp: Use lambda function to preserve 'this'

parent acdcd5d5
No related merge requests found
......@@ -24,9 +24,8 @@ let converse = function ($http) {
firebase.initializeApp(config)
let messaging = firebase.messaging()
messaging.onMessage(function (msg) {
messaging.onMessage(msg => {
console.log(msg)
console.log("Hi")
this.onchat(msg.data.message)
})
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment