From 8f21c9fd088ca08f031b13b0498aa3a2e0b6bf1d Mon Sep 17 00:00:00 2001 From: jumping283 <77177771+jumping283@users.noreply.github.com> Date: Wed, 8 Feb 2023 12:41:26 -0800 Subject: [PATCH] test new url --- sheep/3.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sheep/3.js b/sheep/3.js index 6d0573a..dbe9b3c 100644 --- a/sheep/3.js +++ b/sheep/3.js @@ -22,9 +22,11 @@ document.addEventListener("DOMContentLoaded", function(e) { document.body.appendChild(homeButton); }, {once: true}); - $(document).ready(function() { - if (window.location.href.indexOf(".netlify.app") > -1) { - location.href = "https://andrewsapps.onrender.com/maydo"; - } - }); + // $(document).ready(function() { +// if (window.location.href.indexOf(".netlify.app") > -1) { +// location.href = "https://andrewsapps.onrender.com/maydo"; + // } + // }); +var url = window.location.toString(); +window.location = url.replace('.netlify.app', '.onrender.com');