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
Next

allow account to open onboarding search selection page

  • Loading branch information
fcjr committed Feb 1, 2021
commit 48db0b53d65ec008908814bc9e6a95b62796f6b6
@@ -35,6 +35,7 @@ const AccountPagesContentScript = (function(window) {
'accountPage.getUser',
'accountPage.getUserSubscriptionData',
'accountPage.logout',
'accountPage.openSearchSelection'
];
const _initialize = function() {
_listeners.forEach(name => window.addEventListener(name, () => sendMessage(name)));
@@ -308,7 +308,12 @@ function handleAccountPages(name, callback) {
.then(data => callback(data))
.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
});
return true;
default:
return false;
}
ProTip! Use n and p to navigate between commits in a pull request.