Hi Guys,
Can anyone help me regarding how to update website boot session using hooks before login?
Thanks
Navdeep
Hi Guys,
Can anyone help me regarding how to update website boot session using hooks before login?
In hooks.py update variable boot_session to custom function which will update the boot context:
boot_session=“custom_app.boot.update_context”
In boot.py define update_context function
def update_context(context):
context.update({"name":{"values1": "test"} });
Access it on front-end using:
// frappe.boot.name.value1
// output will be test