INNER CODE UNIT · JavaScript

fetchAdapter

EdgeTypE/better-deepseek · src/background/index.js:565

const fetchAdapter = (...args) => globalThis.fetch(...args);

// Run once on startup — log failures but don't reject
const startupRemoteDataPromise = Promise.all([
  persistRemoteStatus({ fetch: fetchAdapter, storage: storageAdapter }),
  persistRemoteConfig({ fetch: fetchAdapter, storage: storageAdapter }),
]).then(([remoteStatus, remoteConfig]) => {
  if (!remoteStatus.success) {
    console.warn("[BDS] Startup status fetch failed:", remoteStatus.error);
  }
  if (!remoteConfig.success) {
    console.warn("[BDS] Startup config fetch failed:", remoteConfig.error);
  }
  return {
    success: remoteStatus.success && remoteConfig.success,
    remoteStatus,
    remoteConfig,
  };

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…