mirror of
https://github.com/songquanpeng/message-pusher.git
synced 2025-09-26 20:21:22 +08:00
feat: allow non-https when CHANNEL_URL_ALLOW_NON_HTTPS is true (close #153)
This commit is contained in:
@@ -86,10 +86,10 @@ const EditChannel = () => {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'custom':
|
case 'custom':
|
||||||
if (!localInputs.url.startsWith('https://')) {
|
// if (!localInputs.url.startsWith('https://')) {
|
||||||
showError('自定义通道的 URL 必须以 https:// 开头!');
|
// showError('自定义通道的 URL 必须以 https:// 开头!');
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
try {
|
try {
|
||||||
JSON.parse(localInputs.other);
|
JSON.parse(localInputs.other);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Reference in New Issue
Block a user