[Git][noosfero/noosfero][master] 2 commits: Removes ES6 idioms from serviceworker file

Rodrigo Souto gitlab at mg.gitlab.com
Fri Jan 26 12:00:13 BRST 2018


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
9762a28b by Gabriel Silva at 2018-01-25T12:03:22-02:00
Removes ES6 idioms from serviceworker file

Signed-off-by: Gabriel Silva <gabriel93.silva at gmail.com>

- - - - -
4509e7ea by Rodrigo Souto at 2018-01-26T14:00:02+00:00
Merge branch 'removes_es6' into 'master'

Removes ES6 expressions from serviceworker file

See merge request noosfero/noosfero!1384
- - - - -


1 changed file:

- public/javascripts/serviceworker.js.erb


Changes:

=====================================
public/javascripts/serviceworker.js.erb
=====================================
--- a/public/javascripts/serviceworker.js.erb
+++ b/public/javascripts/serviceworker.js.erb
@@ -58,13 +58,13 @@ function onFetch(event) {
 }
 
 function onPush(event) {
-  var data = event.data.json()
-  let title = data.title;
-  let body = data.body;
-  let icon = data.icon || '/assets/noosfero/logo-120x120.png';
+  var data = event.data.json();
+  var title = data.title;
+  var body = data.body;
+  var icon = data.icon || '/assets/noosfero/logo-120x120.png';
 
   event.waitUntil(
-    self.registration.showNotification(title, { body, icon })
+    self.registration.showNotification(title, { body: body, icon: icon })
   );
 };
 



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/c8b8b46146bf14960b3a88c86c99bbe02fdb5af9...4509e7ead052a6fcbacd3ee3d711020bdeaee4ad

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/c8b8b46146bf14960b3a88c86c99bbe02fdb5af9...4509e7ead052a6fcbacd3ee3d711020bdeaee4ad
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180126/5b5b00fd/attachment.html>


More information about the Noosfero-dev mailing list