Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebinside committed Aug 4, 2024
2 parents ade1b94 + 3612314 commit 0674d42
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions StreamAwesome/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,10 @@ async function loadFontAwesomeStyles() {
import('../fonts/fontawesome/css/brands.min.css')

if (fontAwesomeVersionInfo.fontLicense === 'Pro') {
// Needs to be in an array to avoid static analysis
const proStyles = [
'../fonts/fontawesome/css/sharp-light.min.css',
'../fonts/fontawesome/css/sharp-thin.min.css',
'../fonts/fontawesome/css/sharp-regular.min.css',
'../fonts/fontawesome/css/sharp-solid.min.css',
'../fonts/fontawesome/css/sharp-duotone-solid.min.css'
]

for (const style of proStyles) {
await new Function(`return import("${style}")`)()
}
import('../fonts/fontawesome/css/sharp-light.min.css')
import('../fonts/fontawesome/css/sharp-thin.min.css')
import('../fonts/fontawesome/css/sharp-regular.min.css')
import('../fonts/fontawesome/css/sharp-solid.min.css')
import('../fonts/fontawesome/css/sharp-duotone-solid.min.css')
}
}

0 comments on commit 0674d42

Please sign in to comment.