nabled) {
          document.cookie = COOKIE_NAME
          isCookieEnabled = document.cookie.indexOf(COOKIE_NAME) != -1 ? true : false
        }

        return isCookieEnabled
      }

      ;(function () {
        window.addEventListener('message', (event) => {
          try {
            let data = event.data
            if (data.test !== 'cookie') return
            let result = checkCookiesEnable()
            parent.postMessage(
              {
                isCookieEnabled: result,
              }