Skip to content

Commit

Permalink
Rebuild web-runner 1.2.24-0
Browse files Browse the repository at this point in the history
  • Loading branch information
dominhquang committed Aug 9, 2024
1 parent f2bbf5f commit 85dc088
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/extension-base/src/utils/fetchStaticData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import { fetchJson, fetchText } from '@subwallet/extension-base/utils/fetch';
import { staticData, StaticKey } from '@subwallet/extension-base/utils/staticData';

const PRODUCTION_BRANCHES = ['master', 'webapp', 'webapp-dev'];
const branchName = process.env.BRANCH_NAME || 'koni-dev';
const fetchTarget = PRODUCTION_BRANCHES.indexOf(branchName) > -1 ? 'list.json' : 'preview.json';
// const PRODUCTION_BRANCHES = ['master', 'webapp', 'webapp-dev'];
// const branchName = process.env.BRANCH_NAME || 'koni-dev';
const fetchTarget = 'list.json';

export async function fetchStaticData<T> (slug: string, targetFile?: string, isJson = true) {
const fetchFile = targetFile || fetchTarget;
Expand Down

1 comment on commit 85dc088

@saltict
Copy link

@saltict saltict commented on 85dc088 Aug 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.