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 44
44
}
45
45
46
46
const fluctuation = Math .abs (currentOffset - newOffset );
47
- console .log (fluctuation , currentFluctuation );
48
47
49
48
if (
50
49
currentFluctuation &&
66
65
const handleNewOffset = (newOffset : number ) => {
67
66
// check if we are in a 30% margin
68
67
if (! isOffsetInMargin (newOffset )) {
69
- console .log (' not in margin' );
70
68
return ;
71
69
}
72
70
Original file line number Diff line number Diff line change 1
1
import { browser , dev } from '$app/environment' ;
2
2
import { readable } from 'svelte/store' ;
3
3
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 : '' ;
5
5
const API_SECURE = dev ? false : browser ? window . location . protocol === 'https:' : false ;
6
6
export const API_URL = readable ( `${ API_SECURE ? 'https' : 'http' } ://${ API_HOST } /api` ) ;
7
7
export 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