Skip to content

Commit

Permalink
Merge pull request #1358 from swisstopo/feature/viewer-1352-remove-co…
Browse files Browse the repository at this point in the history
…nsole-logs

Remove console logs
  • Loading branch information
vej-ananas authored Oct 17, 2024
2 parents 302f87f + c2ce810 commit c7be896
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions ui/src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ export default class Auth {
}
if (user) {
const remaining = 1000 * user.exp - Date.now();
console.log('Will log out in', Math.floor(remaining / 1000 / 60), 'min');
authTimeout = window.setTimeout(() => {
console.log('Token expired - logout');
Auth.logout();
}, remaining);
}
Expand Down
1 change: 0 additions & 1 deletion ui/src/layers/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export async function create3DVoxelsTilesetFromConfig(viewer: Viewer, config: La

const searchParams = new URLSearchParams(location.search);
const stepSize = parseFloat(searchParams.get('stepSize') || '1');
console.log('using stepSize:', stepSize);

primitive.nearestSampling = true;
primitive.stepSize = stepSize;
Expand Down
5 changes: 0 additions & 5 deletions ui/src/ngm-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,6 @@ export class NgmApp extends LitElementI18n {
removeLoading() {
this.loading = false;
this.showTrackingConsent = true;
const loadingTime = performance.now() / 1000;
console.log(`loading mask displayed ${(loadingTime).toFixed(3)}s`);
(<NgmSlowLoading> this.querySelector('ngm-slow-loading')).style.display = 'none';
}

Expand All @@ -231,19 +229,16 @@ export class NgmApp extends LitElementI18n {
this.queueLength = queueLength;
if (currentStep === 1 && globe.tilesLoaded) {
currentStep = 2;
console.log('Step 1 finished');
onStep1Finished(globe, searchParams);
setTimeout(() => {
if (currentStep === 2) {
console.log('Too long: going straight to step 3');
currentStep = 3;
this.onStep2Finished(viewer);
unlisten();
}
}, SKIP_STEP2_TIMEOUT);
} else if (currentStep === 2 && globe.tilesLoaded) {
currentStep = 3;
console.log('Step 2 finished');
this.onStep2Finished(viewer);
unlisten();
}
Expand Down
1 change: 0 additions & 1 deletion ui/src/slicer/SlicingLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export default class SlicingLine extends SlicingToolBase {
this.addClippingPlanesFromSphere(primitive);
return;
}
console.log('A transform is used in this tileset');
const planeNormal = this.plane!.normal;
const p1 = this.options.slicePoints[0];
const p2 = this.options.slicePoints[1];
Expand Down

0 comments on commit c7be896

Please sign in to comment.