Skip to content

Commit

Permalink
Replace missed let and optional chaining for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Connum authored and ILOVEPIE committed Feb 5, 2023
1 parent 7ade5ae commit 4a57b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion font-inspector.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ <h1>Free Software</h1>
function displayNames(names) {
var html = '';
['unicode', 'macintosh', 'windows'].forEach( platform => {
let platformNames = names?.[platform];
var platformNames = (names ? names[platform] : null);

if ( ! platformNames ) return;

Expand Down

0 comments on commit 4a57b96

Please sign in to comment.