From 1c54aec0381d959239d458c8f81383c6ad9b2588 Mon Sep 17 00:00:00 2001 From: rugk Date: Sun, 23 Jul 2023 20:25:42 +0200 Subject: [PATCH] fix: fix typo --- src/content_script/pleromaGetUsername.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content_script/pleromaGetUsername.js b/src/content_script/pleromaGetUsername.js index 84abdbe..1acae44 100644 --- a/src/content_script/pleromaGetUsername.js +++ b/src/content_script/pleromaGetUsername.js @@ -7,9 +7,9 @@ * @returns {string} */ function getUsername() { - const hiddenInputFied = document.querySelector('[name="user[nickname]"]') || document.getElementById("user_nickname"); + const hiddenInputField = document.querySelector('[name="user[nickname]"]') || document.getElementById("user_nickname"); - return hiddenInputFied.value; + return hiddenInputField.value; } getUsername();