fix some bugs 2

This commit is contained in:
2026-06-27 11:29:56 +03:30
parent d083469710
commit c3b47e33e1
2 changed files with 41 additions and 33 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ function getProtocol() {
return window.location.protocol === 'https:' ? 'https:' : 'http:'
}
function getConfigUrls() {
export function getConfigUrls() {
const protocol = getProtocol()
return [
@@ -19,7 +19,7 @@ function getConfigUrls() {
]
}
function sortConfigUrls(urls: string[]) {
export function sortConfigUrls(urls: string[]) {
const lastSuccessUrl = localStorage.getItem(CONFIG_SUCCESS_URL_KEY)
return [...urls].sort((a, b) => {