From 40adf85b203f35bcf4800b0cc89d40d0ffac2635 Mon Sep 17 00:00:00 2001 From: Gabe Yuan Date: Mon, 4 Sep 2023 23:12:35 +0800 Subject: [PATCH] fix help link --- src/config/index.js | 2 ++ src/views/Options/Rules.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/config/index.js b/src/config/index.js index 2a5f9ed..5ad965d 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -59,6 +59,8 @@ export const THEME_DARK = "dark"; export const URL_KISS_WORKER = "https://github.com/fishjar/kiss-worker"; export const URL_KISS_PROXY = "https://github.com/fishjar/kiss-proxy"; export const URL_KISS_RULES = "https://github.com/fishjar/kiss-rules"; +export const URL_KISS_RULES_NEW_ISSUE = + "https://github.com/fishjar/kiss-rules/issues/new"; export const URL_RAW_PREFIX = "https://raw.githubusercontent.com/fishjar/kiss-translator/master"; export const URL_MICROSOFT_AUTH = "https://edge.microsoft.com/translate/auth"; diff --git a/src/views/Options/Rules.js b/src/views/Options/Rules.js index 36f3df1..81b2170 100644 --- a/src/views/Options/Rules.js +++ b/src/views/Options/Rules.js @@ -13,7 +13,7 @@ import { OPT_STYLE_ALL, OPT_STYLE_DIY, OPT_STYLE_USE_COLOR, - URL_KISS_RULES, + URL_KISS_RULES_NEW_ISSUE, } from "../../config"; import { useState, useRef, useEffect, useMemo } from "react"; import { useI18n } from "../../hooks/I18n"; @@ -484,7 +484,7 @@ function HelpButton() { size="small" variant="outlined" onClick={() => { - window.open(URL_KISS_RULES, "_blank"); + window.open(URL_KISS_RULES_NEW_ISSUE, "_blank"); }} startIcon={} >