Skip to content

Commit

Permalink
disable spellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Aug 5, 2024
1 parent 054b68c commit cdb3b8a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ function createWindow(): void {
...(process.platform === 'linux' ? { icon: icon } : {}),
webPreferences: {
preload: join(__dirname, '../preload/index.js'),
spellcheck: false,
sandbox: false
}
})
Expand Down
1 change: 0 additions & 1 deletion src/renderer/src/pages/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ const Settings: React.FC = () => {
<Input
size="sm"
className="w-[60%]"
spellCheck={false}
value={delayTestUrl}
placeholder="默认https://www.gstatic.com/generate_204"
onValueChange={(v) => {
Expand Down
1 change: 0 additions & 1 deletion src/renderer/src/pages/syspeoxy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ const Sysproxy: React.FC = () => {
size="sm"
className="w-[50%]"
value={values.host}
spellCheck={false}
placeholder="默认127.0.0.1若无特殊需求请勿修改"
onValueChange={(v) => {
setValues({ ...values, host: v })
Expand Down
3 changes: 0 additions & 3 deletions src/renderer/src/pages/tun.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ const Tun: React.FC = () => {
<SettingItem title="Tun 网卡名称" divider>
<Input
size="sm"
spellCheck={false}
className="w-[100px]"
value={values.device}
onValueChange={(v) => {
Expand Down Expand Up @@ -113,7 +112,6 @@ const Tun: React.FC = () => {
<SettingItem title="MTU" divider>
<Input
size="sm"
spellCheck={false}
className="w-[100px]"
value={values.mtu.toString()}
onValueChange={(v) => {
Expand All @@ -124,7 +122,6 @@ const Tun: React.FC = () => {
<SettingItem title="DNS 劫持">
<Input
size="sm"
spellCheck={false}
className="w-[50%]"
value={values.dnsHijack.join(',')}
onValueChange={(v) => {
Expand Down

0 comments on commit cdb3b8a

Please sign in to comment.