mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 13:52:50 +08:00
FEATURE: allow themes to upload js files as assets
This helps unlock the ability for themes to defer load larger js payloads. The change is safe as themes are allowed to include inline js anyway.
This commit is contained in:
parent
8cea78c833
commit
5aa9a567f8
|
@ -1061,7 +1061,7 @@ files:
|
|||
default: 50000
|
||||
max: 1024000
|
||||
theme_authorized_extensions:
|
||||
default: "jpg|jpeg|png|woff|woff2|svg|eot|ttf|otf|gif"
|
||||
default: "jpg|jpeg|png|woff|woff2|svg|eot|ttf|otf|gif|js"
|
||||
type: list
|
||||
list_type: compact
|
||||
authorized_extensions:
|
||||
|
|
Loading…
Reference in New Issue
Block a user