1 Matching Annotations
  1. Jun 2022
    1. ```js if(window.location.href.endsWith('sitemap.xml')){

      const xmlStr = (
          `<?xml version="1.0" encoding="UTF-8"?>
              <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
                  <url><loc>https://erikmartinjordan.com</loc></url>
              </urlset>
          `
      );
      
      let blob = new Blob([xmlStr], {type: "text/xml"});
      let url = URL.createObjectURL(blob);
      window.open(url, "_self");
      URL.revokeObjectURL(url);
      

      } ```