MCPcopy Index your code
hub / github.com/darkreader/darkreader / getVariableModifier

Function getVariableModifier

src/inject/dynamic-theme/modify-css.ts:749–764  ·  view source on GitHub ↗
(
    variablesStore: VariablesStore,
    prop: string,
    value: string,
    rule: CSSStyleRule,
    ignoredImgSelectors: string[],
    isCancelled: () => boolean,
)

Source from the content-addressed store, hash-verified

747}
748
749function getVariableModifier(
750 variablesStore: VariablesStore,
751 prop: string,
752 value: string,
753 rule: CSSStyleRule,
754 ignoredImgSelectors: string[],
755 isCancelled: () => boolean,
756): CSSVariableModifier {
757 return variablesStore.getModifierForVariable({
758 varName: prop,
759 sourceValue: value,
760 rule,
761 ignoredImgSelectors,
762 isCancelled,
763 });
764}
765
766function getVariableDependantModifier(
767 variablesStore: VariablesStore,

Callers 1

Calls 1

Tested by

no test coverage detected