MCPcopy
hub / github.com/88lin/video_vip / applyInlineStyles

Function applyInlineStyles

video_vip.user.js:357–364  ·  view source on GitHub ↗
(element, styles)

Source from the content-addressed store, hash-verified

355 }
356
357 function applyInlineStyles(element, styles) {
358 Object.entries(styles || {}).forEach(([propertyName, propertyValue]) => {
359 if (propertyValue === undefined || propertyValue === null || propertyValue === "") {
360 return;
361 }
362 element.style[propertyName] = propertyValue;
363 });
364 }
365
366 class BaseConsumer {
367 constructor() {

Callers 1

showPlayerWindowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected