Skip to content

Commit

Permalink
Update surrogate entity name from Google LLC to Youtube (#7)
Browse files Browse the repository at this point in the history
Co-authored-by: francielefaccin <[email protected]>
  • Loading branch information
franfaccin and franfaccin authored Dec 1, 2022
1 parent 0fac349 commit cb5245d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions surrogates/youtube-iframe-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
return;
}

const googleEntityName = 'Google LLC';
const youtubeEntityName = 'Youtube';

// See https://developers.google.com/youtube/iframe_api_reference
const iframeAPIURL = 'https://www.youtube.com/iframe_api';
Expand Down Expand Up @@ -193,7 +193,7 @@
replaceSettings: { type: replaceType }
}
}) => {
if (entity !== googleEntityName || replaceType !== 'youtube-video') {
if (entity !== youtubeEntityName || replaceType !== 'youtube-video') {
return;
}

Expand All @@ -217,7 +217,7 @@
replaceSettings: { type: replaceType }
}
}) {
if (entity !== googleEntityName || replaceType !== 'youtube-video') {
if (entity !== youtubeEntityName || replaceType !== 'youtube-video') {
return;
}

Expand Down

0 comments on commit cb5245d

Please sign in to comment.