From 7636212bed961ba2b44f8ec5104dc20eb59fa7d9 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 25 May 2017 12:08:47 +0100 Subject: [PATCH] Remove refs to counterpart and remove extCounterpart which is unnecessary now we just use a single counterpart instance --- src/vector/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/vector/index.js b/src/vector/index.js index f1ddfd66..193738e2 100644 --- a/src/vector/index.js +++ b/src/vector/index.js @@ -55,8 +55,6 @@ if (process.env.NODE_ENV !== 'production') { var RunModernizrTests = require("./modernizr"); // this side-effects a global var ReactDOM = require("react-dom"); -// Workaround for broken export -import * as counterpart from 'counterpart-riot'; var sdk = require("matrix-react-sdk"); var PlatformPeg = require("matrix-react-sdk/lib/PlatformPeg"); sdk.loadSkin(require('../component-index')); @@ -317,7 +315,7 @@ async function loadApp() { async function loadLanguage() { const lang = UserSettingsStore.getLocalSetting('language', languageHandler.getLanguageFromBrowser()); const languages = languageHandler.getNormalizedLanguageKeys(lang); - languageHandler.setLanguage(languages, counterpart); + languageHandler.setLanguage(languages); } loadApp();