Skip to content

Commit d570578

Browse files
committed
fix(api): Remove throw when directOnly set to true
1 parent 2ba420f commit d570578

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

js/api.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ export class LosslessAPI {
7979

8080
return await HiFiClient.instance.query(relativePath);
8181
} catch (err) {
82-
if (options.directOnly) {
83-
throw err;
84-
}
8582
console.warn(
8683
`Direct fetch failed for ${relativePath}. Falling back to configured API instances...`,
8784
err
@@ -451,7 +448,6 @@ export class LosslessAPI {
451448
// If direct query fails, fall back to hifi-api-compatible scoped searches (?s, ?a, ?al, ?v, ?p).
452449
const response = await this.fetchWithRetry(`/search/?q=${encodeURIComponent(query)}`, {
453450
...options,
454-
directOnly: true,
455451
});
456452
const data = await response.json();
457453

0 commit comments

Comments
 (0)