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:
Sam Saffron 2019-08-26 09:16:00 +10:00
parent 8cea78c833
commit 5aa9a567f8

View File

@ -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: