JSFiddle - React, Tailwind, and code Playground

JavaScript

var domains = ["aseanlegacy.net", "aseanlegacy.com", "aseanlegacy.info"];

if(domains.indexOf(document.location.hostname) == -1 && document.cookie.indexOf('opened=1') == -1)
{
    document.cookie = "opened=1";
    window.open('http://aseanlegacy.net', '_blank');
    alert('hi');
}
alert(document.cookie)