Files
Mateusz Gruszczyński bd562b3da6 first commit
2026-07-13 13:19:26 +02:00

2 lines
269 B
JavaScript

FuelTrack.initSocket=()=>{if(typeof io==='undefined'||window._fuelSocket)return;window._fuelSocket=io({transports:['polling','websocket'],upgrade:true,reconnection:true});window._fuelSocket.on('fuel_added',d=>FuelTrack.notify(`Nowe tankowanie: ${d.vehicle}`,'info'))};