kopia lustrzana https://github.com/manuelkasper/sotlas-frontend
14 wiersze
273 B
JavaScript
14 wiersze
273 B
JavaScript
|
import axios from 'axios'
|
||
|
|
||
|
let mapSessionReported = false
|
||
|
|
||
|
function reportMapSession () {
|
||
|
if (mapSessionReported) {
|
||
|
return
|
||
|
}
|
||
|
axios.post(process.env.VUE_APP_API_URL + '/mapsession', { type: 'first' })
|
||
|
mapSessionReported = true
|
||
|
}
|
||
|
|
||
|
export default reportMapSession
|