From 51edb13a0699efe3e9c05004594b1fcbd54b15ed Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 16 Nov 2024 09:54:19 -0500 Subject: [PATCH] Minor code review --- assets/resources/spoof-css.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/resources/spoof-css.js b/assets/resources/spoof-css.js index 431c6f96b..32b51acf4 100644 --- a/assets/resources/spoof-css.js +++ b/assets/resources/spoof-css.js @@ -51,14 +51,13 @@ export function spoofCSS( const privatePropToValueMap = new Map(); for ( let i = 0; i < args.length; i += 2 ) { const prop = toCamelCase(args[i+0]); - if ( typeof prop !== 'string' ) { break; } if ( prop === '' ) { break; } const value = args[i+1]; if ( typeof value !== 'string' ) { break; } if ( prop.charCodeAt(0) === 0x5F /* _ */ ) { privatePropToValueMap.set(prop, value); } else { - propToValueMap.set(toCamelCase(prop), value); + propToValueMap.set(prop, value); } } const safe = safeSelf();