Skip to content

Commit 09e81b7

Browse files
fix: update message endpoint protocol based on current deployment (#558)
1 parent 4153ff4 commit 09e81b7

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

website/src/pages/contact-us.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ type ContactUsFormValues = {
3434
};
3535

3636

37-
const MESSAGE_ENDPOINT = 'http://mail.ragflow.io:9378/v1/messages';
38-
const DEFAULT_FORM_VALUES: ContactUsFormValues = {
37+
const MESSAGE_ENDPOINT = `${window.location.protocol}//mail.ragflow.io:9378/v1/messages`;
38+
const DEFAULT_FORM_VALUES: ContactUsFormValues = {
3939
first_name: '',
4040
last_name: '',
4141
company: '',

website/src/utils/visual-effects/FxRecolorIcon.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ export default function FxRecolorIcon({
3737
const icon = iconRef.current;
3838

3939
if (icon) {
40-
console.log(icon);
41-
4240
// @ts-ignore
4341
const {
4442
width: iw,
@@ -82,4 +80,4 @@ export default function FxRecolorIcon({
8280
</g>
8381
</svg>
8482
)
85-
}
83+
}

website/src/utils/visual-effects/SvgForeignIcon.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ const SvgForeignIcon = forwardRef(function SvgForeignIcon({
3939
const icon = iconRef.current;
4040

4141
if (icon) {
42-
console.log(icon);
43-
4442
// @ts-ignore
4543
const {
4644
width: iw,
@@ -106,4 +104,4 @@ const SvgForeignIcon = forwardRef(function SvgForeignIcon({
106104
);
107105
});
108106

109-
export default SvgForeignIcon;
107+
export default SvgForeignIcon;

0 commit comments

Comments
 (0)