From 1ebc52e08afecb324a99287e840935d195b80f53 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Tue, 10 Jun 2025 11:36:39 +0800 Subject: [PATCH] Reorder and update BASE_ICON_SET_URL declaration Moved the BASE_ICON_SET_URL declaration to a later point in the file for better organization. Also adjusted string formatting in error messages for proxy and proxy provider validation to improve readability. --- META.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/META.js b/META.js index 184f66d..e62fa15 100644 --- a/META.js +++ b/META.js @@ -2,9 +2,6 @@ // ################################################### this section can be flexibly customized ################################################### -const BASE_ICON_SET_URL = - "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/"; - const SERVICE_ICON_SET_URL = "https://cdn.jsdelivr.net/gh/xixu-me/favicons@assets/"; @@ -404,6 +401,9 @@ function generateLocationSelectProxyGroups() { })); } +const BASE_ICON_SET_URL = + "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/"; + const proxyGroups = [ { ...proxyGroupDefaults, @@ -654,7 +654,8 @@ function validateOriginalConfig(config) { config.proxies.forEach((proxy, index) => { if (!proxy.name || !proxy.type || !proxy.server || !proxy.port) { throw new Error( - `Invalid proxy number ${index + 1 + `Invalid proxy number ${ + index + 1 } configuration (see https://wiki.\u006D\u0065\u0074\u0061\u0063\u0075\u0062\u0065\u0078.one/en/config/proxies/)` ); } @@ -668,7 +669,8 @@ function validateOriginalConfig(config) { ([name, provider], index) => { if (!provider.type || (provider.type === "http" && !provider.url)) { throw new Error( - `Invalid proxy provider number ${index + 1 + `Invalid proxy provider number ${ + index + 1 } configuration (see https://wiki.\u006D\u0065\u0074\u0061\u0063\u0075\u0062\u0065\u0078.one/en/config/proxy-providers/)` ); }