Skip to content

Commit ceb5ef5

Browse files
committed
reduce console noise while reporting banner state
1 parent c4cae27 commit ceb5ef5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

layouts/partials/banner-scott.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
const url = isHidden ? "/pulse/log/?banner-hidden" : "/pulse/log/?banner-seen";
4444
const requestId = randomString(7);
4545
const urlUnique = `${url}-${requestId}`
46-
console.log(`updating banner state ${requestId}`);
4746
fetch(urlUnique);
4847
}
4948

@@ -69,14 +68,11 @@
6968
try {
7069
const hideBannerAtStartup = JSON.parse(localStorage.getItem("bannerIsHidden")) == true;
7170
if (hideBannerAtStartup) {
72-
console.log("banner disabled at startup");
7371
toggleBannerVisibility();
7472
} else {
75-
console.log("banner visible at startup");
7673
reportBannerState();
7774
}
7875
} catch (error) {
79-
console.log("banner visible at startup (no access to local storage)");
8076
reportBannerState();
8177
}
8278

0 commit comments

Comments
 (0)