Revert "Fix for contrast mode cache delete"

This reverts commit 80465c212f.
This commit is contained in:
jpellizzari
2017-02-14 10:52:51 -08:00
parent 80465c212f
commit efb0d4dc03

View File

@@ -731,11 +731,9 @@ export function rootReducer(state = initialState, action) {
// Bust the webpack require cache to for a re-download of the stylesheets
modules.forEach((i) => {
const children = require.cache[i] ? require.cache[i].children : [];
if (children) {
children.forEach((c) => {
delete require.cache[c];
});
}
children.forEach((c) => {
delete require.cache[c];
});
delete require.cache[i];
});