fix: Fallback value for bundled asset
This commit is contained in:
parent
b175490849
commit
81d13607dd
1 changed files with 2 additions and 2 deletions
|
|
@ -83,8 +83,8 @@ def include_style(path):
|
|||
def bundled_asset(path):
|
||||
from frappe.utils import get_assets_json
|
||||
|
||||
if path.startswith("/assets") and ".bundle." not in path:
|
||||
if path.startswith("/assets") or ".bundle." not in path:
|
||||
return path
|
||||
|
||||
bundled_assets = get_assets_json()
|
||||
return bundled_assets.get(path)
|
||||
return bundled_assets.get(path) or path
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue