MCPcopy Create free account
hub / github.com/Bistutu/FluentRead / checkAndRemoveStyle

Function checkAndRemoveStyle

entrypoints/main/dom.ts:450–455  ·  view source on GitHub ↗
(node: any, styleProperty: any)

Source from the content-addressed store, hash-verified

448
449// 移除特定样式
450export function checkAndRemoveStyle(node: any, styleProperty: any) {
451 // 1. 若节点存在样式且对应属性不为 undefined,则清空该属性
452 if (node.style && node.style[styleProperty] !== undefined) {
453 node.style[styleProperty] = '';
454 }
455}
456
457// 移除截断样式
458export function smashTruncationStyle(node: any) {

Callers 1

smashTruncationStyleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected