This commit is contained in:
@@ -20,7 +20,7 @@ exchange = {
|
||||
'rate': 0
|
||||
}
|
||||
|
||||
|
||||
DEV = os.getenv('DEV', 'false').lower() in ['true', '1', 'yes']
|
||||
tlds = ['australia','newzealand']
|
||||
|
||||
#Assets routes
|
||||
@@ -400,7 +400,7 @@ def index():
|
||||
year = datetime.datetime.now().year
|
||||
hns_scripts = '<script src="https://gday.hnsau/handshake.js" domain="gday.hnsau" async></script><script src="https://gday.hnsau/https.js" async></script>'
|
||||
|
||||
if 'localhost' in request.host or '127.0.0.1' in request.host:
|
||||
if 'localhost' in request.host or '127.0.0.1' in request.host or DEV:
|
||||
hns_scripts = ''
|
||||
|
||||
tld = request.host.split('.')[-1]
|
||||
@@ -419,7 +419,7 @@ def catch_all(path):
|
||||
year = datetime.datetime.now().year
|
||||
hns_scripts = '<script src="https://gday.hnsau/handshake.js" domain="gday.hnsau" async></script><script src="https://gday.hnsau/https.js" async></script>'
|
||||
|
||||
if 'localhost' in request.host or '127.0.0.1' in request.host:
|
||||
if 'localhost' in request.host or '127.0.0.1' in request.host or DEV:
|
||||
hns_scripts = ''
|
||||
|
||||
# If file exists, load it
|
||||
|
||||
Reference in New Issue
Block a user