(ns scripts.redirect)

;; Redirect to bgenc.net if it's using kaangenc.me
(let [location js/location] (when (= (.toLowerCase location.hostname) "kaangenc.me")
                              (location.replace (.join #js[location.protocol "//bgenc.net" location.pathname location.hash] ""))))
