mp-darkmode 1.1.9 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/darkmode.js CHANGED
@@ -4070,7 +4070,7 @@ var SDK = /*#__PURE__*/function () {
4070
4070
  var retColor = !hasInlineBackgroundImage && ret.newColor;
4071
4071
  extStyle += ret.extStyle; // 对背景颜色和文字颜色做继承传递,用于文字亮度计算
4072
4072
 
4073
- if (isBgColor || textColorIdx > 3) {
4073
+ if (isBgColor || textColorIdx >= 5) {
4074
4074
  // 只处理color及之后的属性
4075
4075
  var retColorStr = retColor ? retColor.toString() : match;
4076
4076
  replaceIndex === 0 && Object(_domUtils__WEBPACK_IMPORTED_MODULE_5__["getChildrenAndIt"])(el).forEach(function (dom) {
@@ -4080,7 +4080,6 @@ var SDK = /*#__PURE__*/function () {
4080
4080
  } else {
4081
4081
  dom[_constant__WEBPACK_IMPORTED_MODULE_2__["COLORATTR"]] = retColorStr;
4082
4082
  dom[_constant__WEBPACK_IMPORTED_MODULE_2__["ORIGINAL_COLORATTR"]] = match;
4083
- dom.setAttribute(_constant__WEBPACK_IMPORTED_MODULE_2__["ORIGINAL_COLORATTR"], match);
4084
4083
  } // 如果设置背景颜色,取消背景图片的影响
4085
4084
 
4086
4085