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

only trigger hub if within dawn

  • Loading branch information
fcjr committed Feb 2, 2021
commit 4ee48b4300c32e7e107d386ee9097f5523dfccb2
@@ -309,10 +309,15 @@ function handleAccountPages(name, callback) {
.catch(err => callback(err));
return true;
case 'accountPage.openSearchSelection':
utils.openNewTab({
url: chrome.runtime.getURL('./app/templates/dawn_hub.html#onboarding/3'),
become_active: true
});
(async() => {
await globals.BROWSER_INFO_READY;
if (BROWSER_INFO.name === 'ghostery_desktop') {
utils.openNewTab({
url: chrome.runtime.getURL('./app/templates/dawn_hub.html#onboarding/3'),
become_active: true
});
}
})();
return true;
default:
return false;
ProTip! Use n and p to navigate between commits in a pull request.