fix: load all boot data on website
This commit is contained in:
parent
3cd5d079a4
commit
0736f8a01b
2 changed files with 1 additions and 3 deletions
|
|
@ -9,9 +9,6 @@ frappe.provide("frappe.awesome_bar_path");
|
|||
window.cur_frm = null;
|
||||
|
||||
$.extend(frappe, {
|
||||
boot: {
|
||||
lang: "en",
|
||||
},
|
||||
_assets_loaded: [],
|
||||
require: async function (links, callback) {
|
||||
if (typeof links === "string") {
|
||||
|
|
|
|||
|
|
@ -160,6 +160,7 @@ def get_home_page_via_hooks():
|
|||
|
||||
def get_boot_data():
|
||||
return {
|
||||
"lang": "en",
|
||||
"sysdefaults": {
|
||||
"float_precision": cint(frappe.get_system_settings("float_precision")) or 3,
|
||||
"date_format": frappe.get_system_settings("date_format") or "yyyy-mm-dd",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue