fix: telemetry

This commit is contained in:
Jannat Patel
2023-07-25 17:15:56 +05:30
parent 3d27d5f755
commit 1862d726ad
6 changed files with 11 additions and 27 deletions

View File

@@ -18,5 +18,14 @@
Object.assign(frappe.boot, telemetry_boot_info)
</script>
{% endif %}
{{ include_script("telemetry.bundle.js") }}
<script>
frappe.router = {
slug(name) {
return name.toLowerCase().replace(/ /g, "-");
},
};
frappe.utils.make_event_emitter(frappe.router)
</script>
{{ include_script("telemetry.bundle.js") }}
{%- endblock -%}