Skip to content

Commit

Permalink
Remove extraneous secrets and remove extraneous comments
Browse files Browse the repository at this point in the history
  • Loading branch information
likimmy committed Feb 7, 2024
1 parent 7614929 commit ee24d12
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 12 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,3 @@ jobs:
secrets:
caller_github_token: ${{ secrets.GITHUB_TOKEN }}
MAPBOX_KEY: ${{ secrets.MAPBOX_KEY }}
BAIDU_KEY: ${{ secrets.BAIDU_KEY }}
GOOGLE_KEY: ${{ secrets.GOOGLE_KEY }}
2 changes: 0 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ jobs:
build_script: ''
secrets:
MAPBOX_KEY: ${{ secrets.MAPBOX_KEY }}
BAIDU_KEY: ${{ secrets.BAIDU_KEY }}
GOOGLE_KEY: ${{ secrets.GOOGLE_KEY }}
2 changes: 0 additions & 2 deletions .github/workflows/wcag_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ jobs:
build_script: npm run setup-test-site && npm run build-test-site
secrets:
MAPBOX_KEY: ${{ secrets.MAPBOX_KEY }}
BAIDU_KEY: ${{ secrets.BAIDU_KEY }}
GOOGLE_KEY: ${{ secrets.GOOGLE_KEY }}
3 changes: 1 addition & 2 deletions static/js/theme-map/Maps/Providers/Baidu.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,7 @@ function load(resolve, reject, apiKey, {
}

const negativeLngFixStyle = document.createElement('style');
// negativeLngFixStyle.innerText = negativeLngFixCSS;
negativeLngFixStyle.innerHTML = negativeLngFixCSS;
negativeLngFixStyle.innerText = negativeLngFixCSS;

document.head.appendChild(negativeLngFixStyle);
}
Expand Down
6 changes: 2 additions & 4 deletions static/js/theme-map/Util/Accessibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ export class AccessibilityHelpers {
export const AccessibilityChecks = {
checkAltTags: function () {
const accessibilityStyleSheet = document.createElement('style');
// accessibilityStyleSheet.innerText = `img:not([alt]) { outline: ${outlineStyle}; }`;
accessibilityStyleSheet.innerHTML = `img:not([alt]) { outline: ${outlineStyle}; }`;
accessibilityStyleSheet.innerText = `img:not([alt]) { outline: ${outlineStyle}; }`;
for (let selector of whitelist) {
// accessibilityStyleSheet.innerText += `${selector} img:not([alt]) { outline: none; }`;
accessibilityStyleSheet.innerHTML += `${selector} img:not([alt]) { outline: none; }`;
accessibilityStyleSheet.innerText += `${selector} img:not([alt]) { outline: none; }`;
}
document.head.appendChild(accessibilityStyleSheet);
}
Expand Down

0 comments on commit ee24d12

Please sign in to comment.