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

@@ -1,7 +1,6 @@
frappe.ready(() => {
setup_file_size();
pin_header();
setup_router();
$(".join-batch").click((e) => {
join_course(e);
@@ -43,14 +42,6 @@ frappe.ready(() => {
});
});
const setup_router = () => {
frappe.router = {
slug(name) {
return name.toLowerCase().replace(/ /g, "-");
},
};
};
const pin_header = () => {
const el = document.querySelector(".sticky");
if (el) {

View File

@@ -1,3 +1,4 @@
import "./profile.js";
import "./common_functions.js";
import "../../../../frappe/frappe/public/js/frappe/ui/chart.js";
import "../../../../frappe/frappe/public/js/frappe/event_emitter.js";