INNER CODE UNIT · JavaScript

engineTooOld

LeyckerS/moondownloader · web/app.js:277

function engineTooOld() {
  if (!window.CSS || !CSS.supports) return true;
  return !CSS.supports("display", "grid")
      || !CSS.supports("color", "color-mix(in srgb, red, blue)");
}

function showEngineWarning() {
  const box = document.createElement("div");
  box.style.cssText = "position:fixed;inset:0;z-index:99;background:#05070c;color:#dfe8f6;"
    + "font:14px/1.7 Consolas,monospace;padding:34px;overflow:auto";
  box.innerHTML = "<b style='font-size:19px'>Rendering engine too old</b>"
    + "<p>This window is running on MSHTML (Internet Explorer), not Edge:"
    + " the GUI cannot be drawn.</p>"
    + "<p>Close it and launch <b>start.bat</b>, which opens the GUI in Edge/Chrome"
    + " with <code>--app</code> and does not depend on pywebview.</p>";
  document.body.appendChild(box);
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…