File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 4444 }
4545
4646 const fluctuation = Math .abs (currentOffset - newOffset );
47- console .log (fluctuation , currentFluctuation );
4847
4948 if (
5049 currentFluctuation &&
6665 const handleNewOffset = (newOffset : number ) => {
6766 // check if we are in a 30% margin
6867 if (! isOffsetInMargin (newOffset )) {
69- console .log (' not in margin' );
7068 return ;
7169 }
7270
Original file line number Diff line number Diff line change 11import { browser , dev } from '$app/environment' ;
22import { readable } from 'svelte/store' ;
33
4- const API_HOST = 'timer.itsblue.de' ; // dev ? 'localhost:3000' : browser ? window.location.host : '';
4+ const API_HOST = dev ? 'localhost:3000' : browser ? window . location . host : '' ;
55const API_SECURE = dev ? false : browser ? window . location . protocol === 'https:' : false ;
66export const API_URL = readable ( `${ API_SECURE ? 'https' : 'http' } ://${ API_HOST } /api` ) ;
77export const API_WS_URL = readable ( `${ API_SECURE ? 'wss' : 'ws' } ://${ API_HOST } /api/ws` ) ;
You can’t perform that action at this time.
0 commit comments