Move window.chrome reference to chromium.js
// FREEBIE
This commit is contained in:
parent
a9562b23b6
commit
688b297050
2 changed files with 3 additions and 2 deletions
|
@ -169,6 +169,9 @@
|
||||||
return chrome.i18n.getMessage(message, substitutions);
|
return chrome.i18n.getMessage(message, substitutions);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
if (window.chrome && chrome.i18n) {
|
||||||
|
moment.locale(chrome.i18n.getUILanguage());
|
||||||
|
}
|
||||||
|
|
||||||
window.textsecure = window.textsecure || {};
|
window.textsecure = window.textsecure || {};
|
||||||
window.textsecure.registration = {
|
window.textsecure.registration = {
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
window.Whisper = window.Whisper || {};
|
window.Whisper = window.Whisper || {};
|
||||||
|
|
||||||
moment.locale(chrome.i18n.getUILanguage());
|
|
||||||
|
|
||||||
Whisper.TimestampView = Whisper.View.extend({
|
Whisper.TimestampView = Whisper.View.extend({
|
||||||
initialize: function(options) {
|
initialize: function(options) {
|
||||||
extension.windows.onClosed(this.clearTimeout.bind(this));
|
extension.windows.onClosed(this.clearTimeout.bind(this));
|
||||||
|
|
Loading…
Reference in a new issue