From 5e442502fbcfe1ca2927ab07e974ef24a6f86c22 Mon Sep 17 00:00:00 2001 From: Rick Carlino Date: Wed, 10 Jan 2018 09:27:06 -0600 Subject: [PATCH] Remove logger; ignore entrypoint files; call maybeRunLocalstorageMigration(); --- .codebeatignore | 2 ++ webpack/__test_support__/localstorage.js | 1 - webpack/entry.tsx | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.codebeatignore b/.codebeatignore index 6ea069981..89e572517 100644 --- a/.codebeatignore +++ b/.codebeatignore @@ -4,3 +4,5 @@ webpack/**/*test*.tsx **__test** **__tests__** **test** +webpack/entry.tsx +webpack/password_reset/index.tsx diff --git a/webpack/__test_support__/localstorage.js b/webpack/__test_support__/localstorage.js index e2104adb4..fb56c8b51 100644 --- a/webpack/__test_support__/localstorage.js +++ b/webpack/__test_support__/localstorage.js @@ -14,7 +14,6 @@ function whatever() { return store[key]; }, setItem(key, value) { - console.log(`Set ${key} to ${value} = = = =`); store[key] = value.toString(); }, removeItem(key) { diff --git a/webpack/entry.tsx b/webpack/entry.tsx index 292355e5d..d89701076 100644 --- a/webpack/entry.tsx +++ b/webpack/entry.tsx @@ -7,9 +7,12 @@ import { detectLanguage } from "./i18n"; import { stopIE, shortRevision } from "./util"; import { init } from "i18next"; import { attachAppToDom } from "./routes"; +import { maybeRunLocalstorageMigration } from "./storage_key_translator"; stopIE(); console.log(shortRevision()); +maybeRunLocalstorageMigration(); + detectLanguage().then(config => init(config, attachAppToDom));