mirror of
https://github.com/miniflux/v2.git
synced 2025-08-16 18:01:37 +00:00
perf(js): don't load webauthn,js
when disabled
This saves around 1kB of data, yay.
This commit is contained in:
parent
6f2ec8b3e9
commit
3955df43f5
3 changed files with 8 additions and 3 deletions
|
@ -164,7 +164,7 @@ func Parse() {
|
|||
printErrorAndExit(fmt.Errorf("unable to generate stylesheets bundle: %v", err))
|
||||
}
|
||||
|
||||
if err := static.GenerateJavascriptBundles(); err != nil {
|
||||
if err := static.GenerateJavascriptBundles(config.Opts.WebAuthn()); err != nil {
|
||||
printErrorAndExit(fmt.Errorf("unable to generate javascript bundle: %v", err))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue