fix crash

This commit is contained in:
Robert Dyer
2024-07-21 22:05:15 -05:00
parent 129a6bb0dc
commit 55e404cf5c
+2 -1
View File
@@ -4,8 +4,9 @@ const { closeBudget, ensurePayee, getAccountBalance, getAccountNote, openBudget,
require("dotenv").config();
async function getZestimate(URL) {
let response = undefined;
try {
const response = await fetch(URL, {
response = await fetch(URL, {
headers: {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8',