editCreditCard.mjs (812B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 import { EditCreditCardDialog } from "chrome://formautofill/content/editDialog.mjs"; 6 import { EditCreditCard } from "chrome://formautofill/content/autofillEditForms.mjs"; 7 8 const { record } = window.arguments?.[0] ?? {}; 9 10 const fieldContainer = new EditCreditCard( 11 { 12 form: document.getElementById("form"), 13 }, 14 record, 15 [] 16 ); 17 18 new EditCreditCardDialog( 19 { 20 title: document.querySelector("title"), 21 fieldContainer, 22 controlsContainer: document.getElementById("controls-container"), 23 cancel: document.getElementById("cancel"), 24 save: document.getElementById("save"), 25 }, 26 record 27 );