Skip to content

Commit

Permalink
Merge pull request #15 from ChristYoung/hotfix_for_assets
Browse files Browse the repository at this point in the history
🐞 fix: find out the public assets on the prod environment.
  • Loading branch information
ChristYoung authored Dec 10, 2023
2 parents cdc2c33 + 4a103a9 commit abe0876
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/InputHandler.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useCallback, useEffect } from 'react';

import { isChineseSymbol, isLegal } from '../utils';

export interface UpdateInputFn {
Expand Down
4 changes: 3 additions & 1 deletion src/hooks/useKeySound.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { useSelector } from 'react-redux';
import useSound from 'use-sound';

import {
SettingState,
getSettingSelector,
} from '../store/settingReducer/settingSlice';
import noop from '../utils/noop.util';

export const SOUND_RESOURCES_PREFIX = '/sounds/';
export const SOUND_RESOURCES_PREFIX =
process.env.NODE_ENV === 'production' ? '/spelling/sounds/' : '/sounds/';
export const WRONG_SOUND = 'beep.wav';
export const CORRECT_SOUND = 'correct.wav';
export const TYPING_SOUND = 'Cherry MX Blacks.mp3';
Expand Down

0 comments on commit abe0876

Please sign in to comment.