Files
tubestation/browser/components/myfirefox/myfirefox.js
Sam Foster da60508fa5 Bug 1761787 - Add a shell for the signup flow / synced tabs area of My Firefox. r=Gijs,fluent-reviewers
* Sketch in a page layout and grid to house the tab-pickup region
* Add a tabs-pickup module with custom elements for the deck of cards that is the setup flow
* and a container with placeholder logic to manage the setup flow
* Make myfirefox.js a module, hook up the tabs-pickup element with its controller/manager where we can implement the fxa flow & business logic stuff

Differential Revision: https://phabricator.services.mozilla.com/D142661
2022-04-11 23:18:35 +00:00

27 lines
786 B
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
import { tabsSetupFlowManager } from "./tabs-pickup.js";
const { XPCOMUtils } = ChromeUtils.import(
"resource://gre/modules/XPCOMUtils.jsm"
);
XPCOMUtils.defineLazyModuleGetters(globalThis, {
ColorwayClosetOpener: "resource:///modules/ColorwayClosetOpener.jsm",
});
window.addEventListener("load", () => {
document
.getElementById("colorway-closet-button")
.addEventListener("click", () => {
globalThis.ColorwayClosetOpener.openModal();
});
tabsSetupFlowManager.initialize(
document.getElementById("tabs-pickup-container")
);
});