Skip to content

Commit

Permalink
Fix Codacy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
PiggyPlex committed Apr 24, 2021
1 parent 7fd3237 commit 9bb26e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions websites/A/about.google/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ presence.on('UpdateData', () => {
let pagename = location.pathname;
pagename = pagename.startsWith('/') ? pagename.slice(1) : pagename;
pagename = pagename.endsWith('/') ? pagename.slice(0, -1) : pagename;
let pageData = pageMap[pagename];
const pageData = pageMap[pagename];
if (pageData && typeof pageData === 'object') {
presenceData.details = pageData.action ?? '';
presenceData.state = pageData.text ?? '';
Expand All @@ -67,7 +67,7 @@ presence.on('UpdateData', () => {
presenceData.details = 'Google\'s office locations';
presenceData.state = `in ${location.search.split('region=')[1].replace(/-/g, ' ').replace(/./, (a) => a.toUpperCase())}`;
}
location.search.split('region=')[1]
location.search.split('region=')[1];
} else {
const metaTitle: HTMLMetaElement = document.querySelector('meta[property="og:title"]'),
h1 = document.querySelector('h1');
Expand Down

0 comments on commit 9bb26e1

Please sign in to comment.