Skip to content

Commit 7dfe9d5

Browse files
committed
catch added
1 parent f770d77 commit 7dfe9d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

geo-ip.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ if (self.fetch) {
33
.then((resp) => resp.json())
44
.then(function (data) {
55
console.log("data: ", data);
6+
})
7+
.catch(function (error) {
8+
console.log(error);
69
});
710
}

0 commit comments

Comments
 (0)