feat: Add ownthedot.com
All checks were successful
Build Docker / Build Image (push) Successful in 1m1s
All checks were successful
Build Docker / Build Image (push) Successful in 1m1s
This commit is contained in:
@@ -403,6 +403,8 @@ def index():
|
|||||||
if 'localhost' in request.host or '127.0.0.1' in request.host or DEV:
|
if 'localhost' in request.host or '127.0.0.1' in request.host or DEV:
|
||||||
hns_scripts = ''
|
hns_scripts = ''
|
||||||
|
|
||||||
|
if 'ownthedot.com' in request.host:
|
||||||
|
return render_template('ownthedot.html', year=year)
|
||||||
tld = request.host.split('.')[-1]
|
tld = request.host.split('.')[-1]
|
||||||
if tld not in tlds and 'localhost' not in tld:
|
if tld not in tlds and 'localhost' not in tld:
|
||||||
return render_template('index.html',year=year, handshake_scripts=hns_scripts)
|
return render_template('index.html',year=year, handshake_scripts=hns_scripts)
|
||||||
|
|||||||
Reference in New Issue
Block a user