Skip to content

Commit

Permalink
update documentation to reflect default is false
Browse files Browse the repository at this point in the history
  • Loading branch information
TimvanScherpenzeel committed Jun 7, 2021
1 parent 4a48451 commit 1c3d24d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface GetGPUTier {
* Whether to fail if the system performance is low or if no hardware GPU is
* available.
*
* @default true
* @default false
*/
failIfMajorPerformanceCaveat?: boolean;
/**
Expand Down Expand Up @@ -110,9 +110,9 @@ export const getGPUTier = async ({
isMobile = !!deviceInfo?.isMobile,
screenSize = window.screen,
loadBenchmarks = async (file: string) => {
const data: ModelEntry[] = await fetch(
`${benchmarksURL}/${file}`
).then((response) => response.json());
const data: ModelEntry[] = await fetch(`${benchmarksURL}/${file}`).then(
(response) => response.json()
);

// Remove version tag
data.shift();
Expand Down

0 comments on commit 1c3d24d

Please sign in to comment.