mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-26 05:25:56 +00:00
Compare commits
3 commits
a69e8a2a84
...
b30b9173f6
Author | SHA1 | Date | |
---|---|---|---|
|
b30b9173f6 | ||
|
03beef8006 | ||
|
f3fbea8e53 |
2 changed files with 2 additions and 1 deletions
|
@ -485,7 +485,7 @@ function ApiCache() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof duration === "string") {
|
if (typeof duration === "string") {
|
||||||
let split = duration.match(/^([\d\.,]+)\s?(\w+)$/);
|
let split = duration.match(/^([\d\.,]+)\s?([a-zA-Z]+)$/);
|
||||||
|
|
||||||
if (split.length === 3) {
|
if (split.length === 3) {
|
||||||
let len = parseFloat(split[1]);
|
let len = parseFloat(split[1]);
|
||||||
|
|
|
@ -72,6 +72,7 @@ class GoogleChat extends NotificationProvider {
|
||||||
|
|
||||||
// construct json data
|
// construct json data
|
||||||
let data = {
|
let data = {
|
||||||
|
fallbackText: chatHeader["title"],
|
||||||
cardsV2: [
|
cardsV2: [
|
||||||
{
|
{
|
||||||
card: {
|
card: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue