Bug 1023279 Make conversation window title localizable, and add missing license header. r=nperriault,ui-review=darrin
This commit is contained in:
@@ -8,9 +8,7 @@ var loop = loop || {};
|
||||
loop.conversation = (function(OT, mozL10n) {
|
||||
"use strict";
|
||||
|
||||
var sharedViews = loop.shared.views,
|
||||
// aliasing translation function as __ for concision
|
||||
__ = mozL10n.get;
|
||||
var sharedViews = loop.shared.views;
|
||||
|
||||
/**
|
||||
* App router.
|
||||
@@ -174,6 +172,8 @@ loop.conversation = (function(OT, mozL10n) {
|
||||
// else to ensure the L10n environment is setup correctly.
|
||||
mozL10n.initialize(window.navigator.mozLoop);
|
||||
|
||||
document.title = mozL10n.get("incoming_call_title");
|
||||
|
||||
router = new ConversationRouter({
|
||||
conversation: new loop.shared.models.ConversationModel({}, {sdk: OT}),
|
||||
notifier: new sharedViews.NotificationListView({el: "#messages"})
|
||||
|
||||
Reference in New Issue
Block a user