Skip to content

Commit

Permalink
fix: https support
Browse files Browse the repository at this point in the history
  • Loading branch information
D-D-H committed Dec 8, 2023
1 parent 2fc2008 commit 4cbdf3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions frontend/src/components/layouts/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,8 @@ onUnmounted(() => {
</div>
</div>
</header>
<div class="banner" v-if="bannerVisible && !bannerClosed" >
<el-alert
:type="isDark ? 'success' : 'info'"
center
@close="bannerClosed = true;"
>
<div class="banner" v-if="bannerVisible && !bannerClosed">
<el-alert :type="isDark ? 'success' : 'info'" center @close="bannerClosed = true">
<template #title>
<i18n-t keypath="jifa.banner" tag="span">
<template v-slot:GitHub>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/composables/analysis-api-requester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function byStomp(resolve: (req: Requester) => void) {
const resRejMap = new Map<number, ResRej>();

const client = new Client({
brokerURL: `ws://${location.host}/jifa-stomp`,
brokerURL: `${'https' === location.protocol ? 'wss' : 'ws'}://${location.host}/jifa-stomp`,
reconnectDelay: 5000
});

Expand Down

0 comments on commit 4cbdf3b

Please sign in to comment.