Skip to content

Commit

Permalink
Fix: remove debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dorianim committed May 12, 2023
1 parent 84d3758 commit d879f3b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions web/src/routes/t/[timerId]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
}
const fluctuation = Math.abs(currentOffset - newOffset);
console.log(fluctuation, currentFluctuation);
if (
currentFluctuation &&
Expand All @@ -66,7 +65,6 @@
const handleNewOffset = (newOffset: number) => {
// check if we are in a 30% margin
if (!isOffsetInMargin(newOffset)) {
console.log('not in margin');
return;
}
Expand Down
2 changes: 1 addition & 1 deletion web/src/stores.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { browser, dev } from '$app/environment';
import { readable } from 'svelte/store';

const API_HOST = 'timer.itsblue.de'; //dev ? 'localhost:3000' : browser ? window.location.host : '';
const API_HOST = dev ? 'localhost:3000' : browser ? window.location.host : '';
const API_SECURE = dev ? false : browser ? window.location.protocol === 'https:' : false;
export const API_URL = readable(`${API_SECURE ? 'https' : 'http'}://${API_HOST}/api`);
export const API_WS_URL = readable(`${API_SECURE ? 'wss' : 'ws'}://${API_HOST}/api/ws`);

0 comments on commit d879f3b

Please sign in to comment.