Skip to content

Commit 63fe58c

Browse files
Update saving.js
1 parent b70b843 commit 63fe58c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

edit/saving.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ setInterval(checkURL('https://kittenapps-films.github.io/GeoFS_Wiki/'+d), 500);
77
async function checkURL(url) {
88
try {
99
const response = await fetch(url);
10-
//go again
11-
} catch (error) {
10+
if (!response.ok) return console.log(`URL ${url} has not been made`);
1211
window.location.replace('https://kittenapps-films.github.io/GeoFS_Wiki/'+d);
12+
} catch (error) {
13+
console.log(`Error checking URL: ${error}`);
1314
}
1415
}

0 commit comments

Comments
 (0)