Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jason5ng32 committed Dec 17, 2023
1 parent 04485fe commit fb8cec4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,12 @@ <h2 id="WebRTC" :class="{'mobile-h2' : isMobile }">🚥 {{currentTexts.webrtc.Ti
<h5 class="card-title"><i class="bi bi-sign-merge-left-fill"></i> {{ stun.name }}</h5>
<p class="card-text text-secondary" style="font-size: 10pt;">{{ stun.url }}</p>
<p class="card-text"
:class="{'text-info': stun.ip === currentTexts.webrtc.StatusWait, 'text-success': stun.ip.includes('.'|':'), 'text-danger': stun.ip === currentTexts.webrtc.StatusError}"
v-html="stun.ip"></p>
:class="{
'text-info': stun.ip === currentTexts.webrtc.StatusWait,
'text-success': stun.ip.includes('.') || stun.ip.includes(':'),
'text-danger': stun.ip === currentTexts.webrtc.StatusError
}"
v-html="stun.ip"></p>
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion public/res/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,10 +496,10 @@ new Vue({

checkAllWebRTC(isRefresh) {
this.stunServers.forEach((server) => {
this.checkSTUNServer(server);
if (isRefresh) {
server.ip = this.currentTexts.webrtc.StatusWait;
}
this.checkSTUNServer(server);
});
},

Expand Down

0 comments on commit fb8cec4

Please sign in to comment.