Skip to content

Commit c7be896

Browse files
authored
Merge pull request #1358 from swisstopo/feature/viewer-1352-remove-console-logs
Remove console logs
2 parents 302f87f + c2ce810 commit c7be896

File tree

4 files changed

+0
-9
lines changed

4 files changed

+0
-9
lines changed

ui/src/auth.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@ export default class Auth {
102102
}
103103
if (user) {
104104
const remaining = 1000 * user.exp - Date.now();
105-
console.log('Will log out in', Math.floor(remaining / 1000 / 60), 'min');
106105
authTimeout = window.setTimeout(() => {
107-
console.log('Token expired - logout');
108106
Auth.logout();
109107
}, remaining);
110108
}

ui/src/layers/helpers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export async function create3DVoxelsTilesetFromConfig(viewer: Viewer, config: La
6262

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

6766
primitive.nearestSampling = true;
6867
primitive.stepSize = stepSize;

ui/src/ngm-app.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,6 @@ export class NgmApp extends LitElementI18n {
209209
removeLoading() {
210210
this.loading = false;
211211
this.showTrackingConsent = true;
212-
const loadingTime = performance.now() / 1000;
213-
console.log(`loading mask displayed ${(loadingTime).toFixed(3)}s`);
214212
(<NgmSlowLoading> this.querySelector('ngm-slow-loading')).style.display = 'none';
215213
}
216214

@@ -231,19 +229,16 @@ export class NgmApp extends LitElementI18n {
231229
this.queueLength = queueLength;
232230
if (currentStep === 1 && globe.tilesLoaded) {
233231
currentStep = 2;
234-
console.log('Step 1 finished');
235232
onStep1Finished(globe, searchParams);
236233
setTimeout(() => {
237234
if (currentStep === 2) {
238-
console.log('Too long: going straight to step 3');
239235
currentStep = 3;
240236
this.onStep2Finished(viewer);
241237
unlisten();
242238
}
243239
}, SKIP_STEP2_TIMEOUT);
244240
} else if (currentStep === 2 && globe.tilesLoaded) {
245241
currentStep = 3;
246-
console.log('Step 2 finished');
247242
this.onStep2Finished(viewer);
248243
unlisten();
249244
}

ui/src/slicer/SlicingLine.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ export default class SlicingLine extends SlicingToolBase {
6868
this.addClippingPlanesFromSphere(primitive);
6969
return;
7070
}
71-
console.log('A transform is used in this tileset');
7271
const planeNormal = this.plane!.normal;
7372
const p1 = this.options.slicePoints[0];
7473
const p2 = this.options.slicePoints[1];

0 commit comments

Comments
 (0)