tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

loading-resource-lib.js (304B)


      1 // This js file actually calls fetch to load an image to
      2 // an element.
      3 async function load_image(label, img_element) {
      4  const url = "/images/blue.png?"+label;
      5  const response = await fetch(url);
      6  blob = await response.blob();
      7  const imgURL = URL.createObjectURL(blob);
      8  img_element.src = imgURL;
      9 }