Skip to content

Commit

Permalink
Merge pull request #39 from mirumirumi/main
Browse files Browse the repository at this point in the history
fix: it is unnecessary that retrieve ip address
  • Loading branch information
mirumirumi authored Nov 2, 2022
2 parents 13aee90 + 083f396 commit a337326
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/views/MapView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,6 @@ const loader = new Loader({
loader.load().then(async (google) => {
// suppress larger volume of requets
const { data: ip } = await axios.get("https://ipinfo.io/json?token=c1412db4f9b238")
const savedIp = Cookies.get("savedIp")
if (savedIp == undefined || ip !== savedIp) {
Cookies.set("savedIp", ip)
}
const requestNumMap = Cookies.get("requestNumMap") ?? "0"
if (requestNumMap != undefined) {
Cookies.set("requestNumMap", (Number(requestNumMap) + 1).toString(), { expires: 1 })
Expand Down

0 comments on commit a337326

Please sign in to comment.