Bug 1486631 - Add CFR, search shortcut fixes, and bug fixes to Activity Stream r=Mardak,ursula

MozReview-Commit-ID: HZbYyg4FGwi

Differential Revision: https://phabricator.services.mozilla.com/D4392
This commit is contained in:
k88hudson
2018-08-28 20:29:50 +00:00
parent fce367d533
commit f0186f470b
88 changed files with 1713 additions and 640 deletions

View File

@@ -0,0 +1,13 @@
export function enableASRouterContent(store, asrouterContent) {
// Enable asrouter content
store.subscribe(() => {
const state = store.getState();
if (state.Prefs.values.asrouterExperimentEnabled && !asrouterContent.initialized) {
asrouterContent.init();
} else if (!state.Prefs.values.asrouterExperimentEnabled && asrouterContent.initialized) {
asrouterContent.uninit();
}
});
// Return this for testing purposes
return {asrouterContent};
}