fix: JavaScript换行符转义问题
This commit is contained in:
2
app.py
2
app.py
@@ -1764,7 +1764,7 @@ HTML_TEMPLATE = '''<!DOCTYPE html>
|
||||
if (!desktopNotifyEnabled || Notification.permission !== 'granted') return;
|
||||
|
||||
const notification = new Notification('⚠️ 系统资源告警', {
|
||||
body: warnings.join('\n'),
|
||||
body: warnings.join('\\n'),
|
||||
icon: 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">📊</text></svg>',
|
||||
tag: 'system-alert',
|
||||
requireInteraction: false
|
||||
|
||||
Reference in New Issue
Block a user