Skip to content

Commit d879f3b

Browse files
committed
Fix: remove debug stuff
1 parent 84d3758 commit d879f3b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

web/src/routes/t/[timerId]/+page.svelte

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
}
4545
4646
const fluctuation = Math.abs(currentOffset - newOffset);
47-
console.log(fluctuation, currentFluctuation);
4847
4948
if (
5049
currentFluctuation &&
@@ -66,7 +65,6 @@
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

web/src/stores.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { browser, dev } from '$app/environment';
22
import { 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 : '';
55
const API_SECURE = dev ? false : browser ? window.location.protocol === 'https:' : false;
66
export const API_URL = readable(`${API_SECURE ? 'https' : 'http'}://${API_HOST}/api`);
77
export const API_WS_URL = readable(`${API_SECURE ? 'wss' : 'ws'}://${API_HOST}/api/ws`);

0 commit comments

Comments
 (0)