Fix script component src attribute (#2887)

This commit is contained in:
Evan Almloff 2024-08-29 01:52:36 +02:00 committed by GitHub
parent 91112734f6
commit e5696cd72f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -222,6 +222,9 @@ impl ScriptProps {
if let Some(r#type) = &self.r#type {
attributes.push(("type", r#type.clone()));
}
if let Some(src) = &self.src {
attributes.push(("src", src.clone()));
}
attributes
}