mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
fix(gradient-text): detect houdini api in safari
This commit is contained in:
parent
6c7715ef16
commit
afd648069b
@ -81,7 +81,7 @@ export default {
|
||||
beforeMount () {
|
||||
if (!houdiniRegistered) {
|
||||
houdiniRegistered = true
|
||||
if (window.CSS) {
|
||||
if (window?.CSS?.registerProperty) {
|
||||
CSS.registerProperty({
|
||||
name: '--start-stop',
|
||||
syntax: '<color>',
|
||||
|
Loading…
Reference in New Issue
Block a user