Browse Source

fix fontawesome flickering

main
pvincent 5 months ago
parent
commit
bb82c82232
  1. 1
      app/javascript/application.js
  2. 2
      app/javascript/controllers/application.js

1
app/javascript/application.js

@ -16,3 +16,4 @@ import { fab } from "@fortawesome/free-brands-svg-icons"
import { library } from "@fortawesome/fontawesome-svg-core" import { library } from "@fortawesome/fontawesome-svg-core"
import "@fortawesome/fontawesome-free" import "@fortawesome/fontawesome-free"
library.add(far, fas, fab) library.add(far, fas, fab)
FontAwesome.config.mutateApproach = 'sync'

2
app/javascript/controllers/application.js

@ -7,3 +7,5 @@ application.debug = stimulusDebug ? stimulusDebug.content === 'true' : false
window.Stimulus = application window.Stimulus = application
export { application } export { application }
Loading…
Cancel
Save