Remove obsolete source code
This commit is contained in:
parent
18368fefaa
commit
3b54c527b6
|
@ -24,7 +24,6 @@ if (!avatarId) {
|
|||
let localFlipX = JSON.parse(jitsiLocalStorage.getItem("localFlipX") || true);
|
||||
let displayName = UIUtil.unescapeHtml(
|
||||
jitsiLocalStorage.getItem("displayname") || '');
|
||||
let language = jitsiLocalStorage.getItem("language");
|
||||
let cameraDeviceId = jitsiLocalStorage.getItem("cameraDeviceId") || '';
|
||||
let micDeviceId = jitsiLocalStorage.getItem("micDeviceId") || '';
|
||||
let welcomePageDisabled = JSON.parse(
|
||||
|
@ -113,13 +112,6 @@ export default {
|
|||
return avatarUrl;
|
||||
},
|
||||
|
||||
getLanguage () {
|
||||
return language;
|
||||
},
|
||||
setLanguage: function (lang) {
|
||||
language = lang;
|
||||
},
|
||||
|
||||
/**
|
||||
* Sets new flipX state of local video and saves it to the local storage.
|
||||
* @param {string} val flipX state of local video
|
||||
|
|
|
@ -10,7 +10,6 @@ import { WelcomePage } from '../welcome';
|
|||
import URLProcessor from '../../../modules/config/URLProcessor';
|
||||
import KeyboardShortcut
|
||||
from '../../../modules/keyboardshortcut/keyboardshortcut';
|
||||
import settings from '../../../modules/settings/Settings';
|
||||
import getTokenData from '../../../modules/tokendata/TokenData';
|
||||
import JitsiMeetLogStorage from '../../../modules/util/JitsiMeetLogStorage';
|
||||
|
||||
|
@ -62,7 +61,7 @@ export function init() {
|
|||
// with jitsi meet.
|
||||
APP.API.init(APP.tokenData.jwt ? { forceEnable: true } : undefined);
|
||||
|
||||
APP.translation.init(settings.getLanguage());
|
||||
APP.translation.init();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -68,10 +68,9 @@ export function connect() {
|
|||
|
||||
APP.UI.initConference();
|
||||
|
||||
APP.UI.addListener(UIEvents.LANG_CHANGED, language => {
|
||||
APP.translation.setLanguage(language);
|
||||
APP.settings.setLanguage(language);
|
||||
});
|
||||
APP.UI.addListener(
|
||||
UIEvents.LANG_CHANGED,
|
||||
language => APP.translation.setLanguage(language));
|
||||
|
||||
APP.keyboardshortcut.init();
|
||||
|
||||
|
|
Loading…
Reference in New Issue