auto-git:
[add] dist/assets/index-CQocmVDK.js [change] dist/index.html [change] src/websearchEngines.js [unlink] dist/assets/index-BlgdGsnZ.js
This commit is contained in:
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -5,7 +5,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>LLM Desktop</title>
|
<title>LLM Desktop</title>
|
||||||
<script type="module" crossorigin src="/assets/index-BlgdGsnZ.js"></script>
|
<script type="module" crossorigin src="/assets/index-CQocmVDK.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-D21amC2P.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-D21amC2P.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -60,7 +60,14 @@ export function loadStoredWebsearchEngines(rawValue) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const parsed = JSON.parse(rawValue)
|
const parsed = JSON.parse(rawValue)
|
||||||
return normalizeWebsearchEngines(parsed)
|
if (!Array.isArray(parsed)) return [...DEFAULT_WEBSEARCH_ENGINES]
|
||||||
|
|
||||||
|
const normalized = normalizeWebsearchEngines(parsed)
|
||||||
|
if (parsed.length > 0 && normalized.length === 0) {
|
||||||
|
return [...DEFAULT_WEBSEARCH_ENGINES]
|
||||||
|
}
|
||||||
|
|
||||||
|
return normalized
|
||||||
} catch {
|
} catch {
|
||||||
return [...DEFAULT_WEBSEARCH_ENGINES]
|
return [...DEFAULT_WEBSEARCH_ENGINES]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user