Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Mar 31, 2023
1 parent 520fc46 commit bf71a13
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/config/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const defaultConfig = {
customChatGptWebApiPath: '/backend-api/conversation',
customOpenAiApiUrl: 'https://api.openai.com',
siteRegex: 'match nothing',
userSiteRegexOnly: false,
useSiteRegexOnly: false,
inputQuery: '',
appendQuery: '',
prependQuery: '',
Expand Down
2 changes: 1 addition & 1 deletion src/content-script/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ async function prepareForRightClickMenu() {

async function prepareForStaticCard() {
let siteRegex
if (userConfig.userSiteRegexOnly) siteRegex = userConfig.siteRegex
if (userConfig.useSiteRegexOnly) siteRegex = userConfig.siteRegex
else
siteRegex = new RegExp(
(userConfig.siteRegex && userConfig.siteRegex + '|') + Object.keys(siteConfig).join('|'),
Expand Down
4 changes: 2 additions & 2 deletions src/popup/Popup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,10 @@ function AdvancedPart({ config, updateConfig }) {
<label>
<input
type="checkbox"
checked={config.userSiteRegexOnly}
checked={config.useSiteRegexOnly}
onChange={(e) => {
const checked = e.target.checked
updateConfig({ userSiteRegexOnly: checked })
updateConfig({ useSiteRegexOnly: checked })
}}
/>
{t('Exclusively use Custom Site Regex for website matching, ignoring built-in rules')}
Expand Down

0 comments on commit bf71a13

Please sign in to comment.