v1.2.0: 优化移动端输入与代码块显示体验
修复代码块长内容导致的页面横向溢出,并将移动端回车默认行为调整为换行,避免误触发送,提升手机端可用性。
This commit is contained in:
@@ -140,10 +140,11 @@ function sendNotification(title, content) {
|
||||
|
||||
const parsed = new URL(url);
|
||||
const contentType = isFormData ? 'application/x-www-form-urlencoded' : 'application/json';
|
||||
const req = https.request(parsed, {
|
||||
const reqOptions = {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': contentType, 'Content-Length': Buffer.byteLength(data) },
|
||||
}, (res) => {
|
||||
};
|
||||
const req = https.request(parsed, reqOptions, (res) => {
|
||||
let body = '';
|
||||
res.on('data', (c) => body += c);
|
||||
res.on('end', () => {
|
||||
|
||||
Reference in New Issue
Block a user