Skip to content

Commit

Permalink
chore: set a default last version
Browse files Browse the repository at this point in the history
  • Loading branch information
crashmax-dev committed Jul 23, 2023
1 parent 503621e commit 0749bc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const versions = [

const searchParams = new URLSearchParams(location.search)
const rotateSpeed = Number(searchParams.get('speed') ?? '0.3')
const version = searchParams.get('version') ?? '1.17'
const version = searchParams.get('version') ?? versions.at(-1)!

if (!versions.includes(version)) {
location.href = '/'
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"skipLibCheck": true,

/* Bundler mode */
Expand Down

0 comments on commit 0749bc5

Please sign in to comment.