Merge pull request #18323 from shariquerik/load-boot

This commit is contained in:
Shariq Ansari 2022-10-08 00:05:01 +05:30 committed by GitHub
commit e2fdb7e261
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View file

@ -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") {

View file

@ -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",