Skip to content

Commit

Permalink
check if using static file in mobile results
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRyanSmith committed Feb 12, 2025
1 parent c1b06b5 commit a9264c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webapp/components/interop-data-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,7 @@ async function fetchCsvContents(url, isMobileScoresView) {

let csvLines;
// Active mobile scores require decoding.
const parsedUrl = new URL(url);
if (isMobileScoresView && parsedUrl.host === 'api.github.com') {
if (isMobileScoresView && !url.startsWith('/static/')) {
const respJson = await csvResp.json();
const csvText = atob(respJson['content']);
csvLines = csvText.split('\r\n').filter(l => l);
Expand Down

0 comments on commit a9264c5

Please sign in to comment.