saveFieldIconSettings function
Last updated: 2026-03-03T18:32:34.140Z
Metrics
LOC: 17
Complexity: 1
Params: 0
Signature
saveFieldIconSettings(): : Promise<void>
Source Code
async function saveFieldIconSettings(): Promise<void> {
const settings: Partial<Settings> = {
showFieldIcon: (
document.getElementById("setting-show-field-icon") as HTMLInputElement
).checked,
fieldIconPosition: (
document.getElementById(
"setting-field-icon-position",
) as HTMLSelectElement
).value as Settings["fieldIconPosition"],
};
await chrome.runtime.sendMessage({
type: "SAVE_SETTINGS",
payload: settings,
});
showToast(t("savedAuto"));
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| bindSettingsEvents | calls |