From 688b2970501e1e4f5dc96bd55cd1f59d11530a69 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 5 Aug 2016 17:13:55 -0700 Subject: [PATCH] Move window.chrome reference to chromium.js // FREEBIE --- js/chromium.js | 3 +++ js/views/timestamp_view.js | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/chromium.js b/js/chromium.js index a2e08077..87412124 100644 --- a/js/chromium.js +++ b/js/chromium.js @@ -169,6 +169,9 @@ return chrome.i18n.getMessage(message, substitutions); } }; + if (window.chrome && chrome.i18n) { + moment.locale(chrome.i18n.getUILanguage()); + } window.textsecure = window.textsecure || {}; window.textsecure.registration = { diff --git a/js/views/timestamp_view.js b/js/views/timestamp_view.js index e356b633..2fed1d9d 100644 --- a/js/views/timestamp_view.js +++ b/js/views/timestamp_view.js @@ -5,8 +5,6 @@ 'use strict'; window.Whisper = window.Whisper || {}; - moment.locale(chrome.i18n.getUILanguage()); - Whisper.TimestampView = Whisper.View.extend({ initialize: function(options) { extension.windows.onClosed(this.clearTimeout.bind(this));