feat: add text additional styles to rule
This commit is contained in:
@@ -56,6 +56,7 @@ export const matchRule = async (href, { injectRules, subrulesList }) => {
|
||||
"aiTerms",
|
||||
"termsStyle",
|
||||
"highlightStyle",
|
||||
"textExtStyle",
|
||||
"selectStyle",
|
||||
"parentStyle",
|
||||
"grandStyle",
|
||||
@@ -150,6 +151,7 @@ export const checkRules = (rules) => {
|
||||
aiTerms,
|
||||
termsStyle,
|
||||
highlightStyle,
|
||||
textExtStyle,
|
||||
selectStyle,
|
||||
parentStyle,
|
||||
grandStyle,
|
||||
@@ -189,6 +191,7 @@ export const checkRules = (rules) => {
|
||||
aiTerms: type(aiTerms) === "string" ? aiTerms : "",
|
||||
termsStyle: type(termsStyle) === "string" ? termsStyle : "",
|
||||
highlightStyle: type(highlightStyle) === "string" ? highlightStyle : "",
|
||||
textExtStyle: type(textExtStyle) === "string" ? textExtStyle : "",
|
||||
selectStyle: type(selectStyle) === "string" ? selectStyle : "",
|
||||
parentStyle: type(parentStyle) === "string" ? parentStyle : "",
|
||||
grandStyle: type(grandStyle) === "string" ? grandStyle : "",
|
||||
|
||||
Reference in New Issue
Block a user