INNER CODE UNIT · JavaScript

updateOverall

polius/FileSync · web/js/test-diagnostics.js:71

function updateOverall() {
  const host = document.getElementById('overall-status');
  const icon = document.getElementById('overall-icon');
  const title = document.getElementById('overall-title');
  const sub = document.getElementById('overall-sub');
  if (!host) return;

  const caps = diagnostics.capabilities || {};
  const active = diagnostics.sink && diagnostics.sink.active;
  let state, glyph, t, s;

  if (caps.webrtc === false || active === 'none') {
    state = 'bad'; glyph = '✕';
    t = 'Not supported in this browser';
    s = 'This browser lacks WebRTC, which FileSync needs to move files. Try Chrome, Edge, Firefox, or Safari.';
  } else if (active === 'blob') {
    state = 'warn'; glyph = '!';
    t = 'Works, with limits';

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…