@@ -300,7 +300,7 @@ let sync_metrics = {
300300 // These are determined by looking at the tests in https://github.com/fingerprintjs/fingerprintjs
301301 const fingerprintingAPIs = [
302302 // Payment APIs
303- 'ApplePaySession\\ .canMakePayments' ,
303+ 'ApplePaySession\.canMakePayments' ,
304304
305305 // Audio fingerprinting
306306 'createAnalyser' ,
@@ -312,12 +312,12 @@ let sync_metrics = {
312312 'OscillatorNode' ,
313313
314314 // Canvas fingerprinting
315- 'canvas\\ .getContext' ,
316- 'canvas\\ .toDataURL' ,
317- 'canvasRenderingContext2D\\ .fillText' ,
318- 'canvasRenderingContext2D\\ .strokeText' ,
319- 'canvasRenderingContext2D\\ .getImageData' ,
320- 'HTMLCanvasElement\\ .toBlob' ,
315+ 'canvas\.getContext' ,
316+ 'canvas\.toDataURL' ,
317+ 'canvasRenderingContext2D\.fillText' ,
318+ 'canvasRenderingContext2D\.strokeText' ,
319+ 'canvasRenderingContext2D\.getImageData' ,
320+ 'HTMLCanvasElement\.toBlob' ,
321321
322322 // CSS media queries for fingerprinting
323323 '@media.*color-gamut' ,
@@ -350,7 +350,7 @@ let sync_metrics = {
350350 'attributionSourceId' ,
351351
352352 // Time zone fingerprinting
353- 'resolvedOptions\\(\\)\ \.timeZone' ,
353+ 'resolvedOptions\(\) \.timeZone' ,
354354 'getTimezoneOffset' ,
355355
356356 // WebGL fingerprinting
@@ -363,18 +363,18 @@ let sync_metrics = {
363363 // Screen properties
364364 'availWidth' ,
365365 'availHeight' ,
366- 'screen\\ .width' ,
367- 'screen\\ .height' ,
368- 'screen\\ .colorDepth' ,
366+ 'screen\.width' ,
367+ 'screen\.height' ,
368+ 'screen\.colorDepth' ,
369369
370370 // Navigator properties
371- 'navigator\\ .platform' ,
372- 'navigator\\ .plugins' ,
373- 'navigator\\ .language' ,
374- 'navigator\\ .oscpu' ,
375- 'navigator\\ .vendor' ,
376- 'navigator\\ .getBattery' ,
377- 'navigator\\ .getGamepads' ,
371+ 'navigator\.platform' ,
372+ 'navigator\.plugins' ,
373+ 'navigator\.language' ,
374+ 'navigator\.oscpu' ,
375+ 'navigator\.vendor' ,
376+ 'navigator\.getBattery' ,
377+ 'navigator\.getGamepads' ,
378378
379379 // Geolocation API: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API
380380 'getCurrentPosition' ,
@@ -387,8 +387,8 @@ let sync_metrics = {
387387
388388 // Additional modern fingerprinting vectors
389389 'RTCPeerConnection' ,
390- 'document\\ .fonts' ,
391- 'performance\\ .memory' ,
390+ 'document\.fonts' ,
391+ 'performance\.memory' ,
392392 ] ;
393393
394394 // Pre-compile regexes - handle already escaped patterns
0 commit comments