From d178caee5c93ad9ed91dbd082b0f0b5a9b0507aa Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Mon, 27 Mar 2023 21:38:43 +0530 Subject: Refactoring code. Only using hashes for output file names. Using singleton pattern to store the callbacks for observeDOM, and only one MutationObserver. --- src/shared/autofill-otp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/autofill-otp.ts') diff --git a/src/shared/autofill-otp.ts b/src/shared/autofill-otp.ts index e05ea7c..b359cb4 100644 --- a/src/shared/autofill-otp.ts +++ b/src/shared/autofill-otp.ts @@ -26,6 +26,6 @@ document.addEventListener("DOMContentLoaded", () => { }; }); -export const addAutofillOtps = (addedOTPAutofillList: AutofillOTPRule[]) => { +export const addAutofillOtps = (addedOTPAutofillList: readonly AutofillOTPRule[]) => { otpAutofillList = otpAutofillList.concat(addedOTPAutofillList); }; -- cgit v1.2.3