fix(gradient-text): detect houdini api in safari

This commit is contained in:
07akioni 2020-11-17 17:13:24 +08:00
parent 6c7715ef16
commit afd648069b

View File

@ -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>',