Skip to content

Commit

Permalink
Merge pull request #1382 from lucasnetau/patch-2
Browse files Browse the repository at this point in the history
Calculate key before src variable is overwritten
  • Loading branch information
kevinchappell authored Aug 14, 2023
2 parents 8a694e8 + 2e6ada0 commit e0feee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,8 @@ export const getStyles = (scriptScr, path) => {
if (typeof src == 'object') {
type = src.type || (src.style ? 'inline' : 'href')
id = src.id
src = type == 'inline' ? src.style : src.href
key = id || src.href || src.style
src = type == 'inline' ? src.style : src.href
}

// check we haven't already loaded this css
Expand Down

0 comments on commit e0feee8

Please sign in to comment.