Skip to content

Commit f770d77

Browse files
committed
fetch the api
1 parent 4f6b4c8 commit f770d77

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

geo-ip.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
console.log('hi');
1+
if (self.fetch) {
2+
fetch("http://127.0.0.1:36867/api/get-store-url")
3+
.then((resp) => resp.json())
4+
.then(function (data) {
5+
console.log("data: ", data);
6+
});
7+
}

0 commit comments

Comments
 (0)