fix some bugs 2
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user