1
0
Fork 0
website/src/scripts/redirect.cljs

6 lines
290 B
Clojure

(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] ""))))