Merge pull request #6692 from Zlash65/mobile-fix
[Minor] Mobile app related fix
This commit is contained in:
commit
f24cb757bf
1 changed files with 7 additions and 2 deletions
|
|
@ -70,8 +70,13 @@ def get_desk_assets(build_version):
|
|||
pass
|
||||
|
||||
for path in data["include_css"]:
|
||||
with open(os.path.join(frappe.local.sites_path, path) ,"r") as f:
|
||||
assets[1]["data"] = assets[1]["data"] + "\n" + frappe.safe_decode(f.read(), "utf-8")
|
||||
if path.startswith('/assets/'):
|
||||
path = path.replace('/assets/', 'assets/')
|
||||
try:
|
||||
with open(os.path.join(frappe.local.sites_path, path) ,"r") as f:
|
||||
assets[1]["data"] = assets[1]["data"] + "\n" + frappe.safe_decode(f.read(), "utf-8")
|
||||
except IOError:
|
||||
pass
|
||||
|
||||
return {
|
||||
"build_version": data["build_version"],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue