mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
fix: prevent unnecessary themeColor deprecation notice (#2403)
This commit is contained in:
parent
87fd55d712
commit
a3ab2be0b0
@ -47,17 +47,19 @@ export default function (vm) {
|
||||
return this.__themeColor;
|
||||
},
|
||||
set themeColor(value) {
|
||||
this.__themeColor = value;
|
||||
console.warn(
|
||||
stripIndent(/* html */ `
|
||||
$docsify.themeColor is deprecated. Use a --theme-color property in your style sheet. Example:
|
||||
<style>
|
||||
:root {
|
||||
--theme-color: deeppink;
|
||||
}
|
||||
</style>
|
||||
`).trim()
|
||||
);
|
||||
if (value) {
|
||||
this.__themeColor = value;
|
||||
console.warn(
|
||||
stripIndent(`
|
||||
$docsify.themeColor is deprecated. Use a --theme-color property in your style sheet. Example:
|
||||
<style>
|
||||
:root {
|
||||
--theme-color: deeppink;
|
||||
}
|
||||
</style>
|
||||
`).trim()
|
||||
);
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user