Bug 1042939 - Resurrect periodic sync, alarms refactor r=millermedeiros #25282
Conversation
5bb6a3b
to
af8724c
Compare
Gareth Aye (gaye) started tests. Results |
this.errorController = new ErrorController(this); | ||
notificationsController.app = this; | ||
this.notificationsController = notificationsController; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since it's static I would not attach it to the app
module.. we can simply require('controllers/notifications')
when needed!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me!
af8724c
to
9285de2
Compare
// Find the event and busytime associated with this alarm. | ||
return Promise.all([ | ||
findObjectById(alarm.eventId, eventStore, trans), | ||
findObjectById(alarm.busytimeId, busytimeStore, trans) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we update the eventStore.get
and busytimeStore.get
to return a promise instead of creating an intermediary helper method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think they do return promises... I think I thought findObjectById
would help clean things up for other reasons
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe findObjectById
is just unnecessary lol
Gareth Aye (gaye) started tests. Results |
4f07dc1
to
b3eaf3e
Compare
|
||
navigator.mozApps.getSelf().onsuccess = (event) => { | ||
var app = event.target.result; | ||
var url = message.imageURL.split('?')[1]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure we don't need to encode/decode the URL?
Gareth Aye (gaye) started tests. Results |
21093c1
to
9217f67
Compare
Gareth Aye (gaye) started tests. Results |
Bug 1042939 - Resurrect periodic sync, alarms refactor r=millermedeiros
No description provided.