Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-2269, GIS-904: Allow account to trigger dawn hub #673

Merged
merged 9 commits into from Feb 5, 2021

use constants

  • Loading branch information
fcjr committed Feb 2, 2021
commit 4d527a268e55ca9c7082dce349a2a68d55f81b39
@@ -49,6 +49,11 @@ import { _getJSONAPIErrorsObject } from './utils/api';
import importCliqzSettings from './utils/cliqzSettingImport';
import { sendCliqzModuleCounts } from './utils/cliqzModulesData';

import {
ONBOARDING,
CHOOSE_DEFAULT_SEARCH
} from '../app/dawn-hub/Views/OnboardingView/OnboardingConstants';

// For debug purposes, provide Access to the internals of `ghostery-common`
// module from Developer Tools Console.
window.CLIQZ = cliqz;
@@ -313,7 +318,7 @@ function handleAccountPages(name, callback) {
await globals.BROWSER_INFO_READY;
if (BROWSER_INFO.name === 'ghostery_desktop') {
utils.openNewTab({
url: chrome.runtime.getURL('./app/templates/dawn_hub.html#onboarding/3'),
url: chrome.runtime.getURL(`./app/templates/dawn_hub.html#${ONBOARDING}/${CHOOSE_DEFAULT_SEARCH}`),
become_active: true
});
}
ProTip! Use n and p to navigate between commits in a pull request.