style: remove unnecessary function whitespace

Remove the unnecessary whitespace between the function name or the
'function' keyword and the opening parenthesis.
This commit is contained in:
2026-08-09 13:09:39 +02:00
committed by Gitea
parent 6bf315e4b8
commit 995e77b69a
31 changed files with 55 additions and 55 deletions
@@ -29,19 +29,19 @@ const { setSetting, getSetting } = useSettings();
const isOpen = ref(false);
const languageDropdown = ref(null);
const selectLanguage = function selectLanguage (code) {
const selectLanguage = function selectLanguage(code) {
setSetting(LANGUAGE_PATH, code);
close();
};
watch(() => getSetting(LANGUAGE_PATH), setLocale);
const close = function () {
const close = function() {
document.removeEventListener('click', closeWrapperOnClickOutside);
isOpen.value = false;
};
const closeWrapperOnClickOutside = function (e) {
const closeWrapperOnClickOutside = function(e) {
if (languageDropdown.value) {
if (!languageDropdown.value.contains(e.target)) {
close();
@@ -49,7 +49,7 @@ const closeWrapperOnClickOutside = function (e) {
};
};
const open = function () {
const open = function() {
if (!isOpen.value) {
isOpen.value = true;
setTimeout(() => {