Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
itaikla1 committed Feb 1, 2024
1 parent fc07f10 commit 195638b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 93 deletions.
2 changes: 0 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const STRATEGY = 'MOBILE';

const senderEmail = '[email protected]';
const recipients = [senderEmail, senderEmail];
const googleSheetUrl = 'https://...';
const mailSubject = 'Lighthouse Scores';

function fetchLighthouseMetrics(url) {
try {
Expand Down
90 changes: 0 additions & 90 deletions main.ts

This file was deleted.

1 change: 1 addition & 0 deletions search-console.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import { sendEmail } from './utils';

// TODO
2 changes: 1 addition & 1 deletion utils/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function sendEmail(recipient, subject, body) {
}
}

function sendTelegramMessage(message) {
export function sendTelegramMessage(message) {
const text = encodeURIComponent(message);
const url = `${TELEGRAM_API}?chat_id=${CHAT_ID}&text=${text}`;
const response = UrlFetchApp.fetch(url, { muteHttpExceptions: true });
Expand Down

0 comments on commit 195638b

Please sign in to comment.