|
@@ -10,7 +10,7 @@ no_sitemap = 1 |
|
|
base_template_path = "templates/www/website_script.js" |
|
|
base_template_path = "templates/www/website_script.js" |
|
|
|
|
|
|
|
|
def get_context(context): |
|
|
def get_context(context): |
|
|
context.javascript = frappe.db.get_single_value('Website Script', 'javascript') |
|
|
|
|
|
|
|
|
context.javascript = frappe.db.get_single_value('Website Script', 'javascript') or "" |
|
|
|
|
|
|
|
|
theme = get_active_theme() |
|
|
theme = get_active_theme() |
|
|
js = strip(theme and theme.js or "") |
|
|
js = strip(theme and theme.js or "") |
|
|