Skip to content

Commit

Permalink
Fixed UI bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
bia-pain-bache committed Oct 16, 2024
1 parent 708af56 commit 51f28a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions _worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2704,12 +2704,11 @@ function renderHomePage (proxySettings, hostName, isPassSet) {
return false;
}
if (isCustomCdn && !(customCdnAddrs && customCdnHost && customCdnSni)) {
alert('⛔ All "Custom" fields should be filled! 🫤');
if (isCustomCdn && !(customCdnAddrs.length > 0 && customCdnHost && customCdnSni)) {
alert('⛔ All "Custom" fields should be filled or deleted together! 🫤');
return false;
}
try {
document.body.style.cursor = 'wait';
const applyButtonVal = applyButton.value;
Expand Down

0 comments on commit 51f28a8

Please sign in to comment.