Skip to content

Commit 534f77b

Browse files
Sonar fixes (Prefer String.fromCodePoint)
1 parent 8990a9a commit 534f77b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client/javascripts/location-map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function createMap(mapId, initConfig, mapsConfig) {
211211
thumbnail: `${assetPath}/defra-map/assets/images/outdoor-map-thumb.jpg`,
212212
logo: `${assetPath}/defra-map/assets/images/os-logo.svg`,
213213
logoAltText,
214-
attribution: `Contains OS data ${String.fromCharCode(COMPANY_SYMBOL_CODE)} Crown copyright and database rights ${new Date().getFullYear()}`,
214+
attribution: `Contains OS data ${String.fromCodePoint(COMPANY_SYMBOL_CODE)} Crown copyright and database rights ${new Date().getFullYear()}`,
215215
backgroundColor: '#f5f5f0'
216216
},
217217
{

0 commit comments

Comments
 (0)