title: Always getting nopreview message displayed in my url?
body: <p>So, I am  working on a shopify platform, the problem I am having is a problem that I am not sure really if it is because of some code I added or not! So what is happening is that when I go to my main page ( <strong>domainname.com</strong> ), my url is changing to '<strong>domainname.com/<em>?nopreview</em></strong>', and this is causing me problems because I have things that I have in my main page and I dont want to see them in product page, so to do so I added a JS code : </p>
  
  <pre><code>if(window.location.hostname === window.location.href){
      // here code to add some DOM elements
  }else {
      // here code to add or remove some DOM elements
  }
  </code></pre>
  
  <p>One of the reasons I dont think it is a code problem is that I have this problem only on one computer, but everything looks fine on the others! </p>
  
  <p>So what do you think ? and can such problem be solved using some extra code ?</p>
  
  <p><strong>Note:</strong> When I refresh the page and remove that extra in url, it returns! </p>