Skip to content

Commit 34e49ef

Browse files
authored
include base in init message if it is not empty. (#5)
1 parent b3f4402 commit 34e49ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/advertising/service_mock.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export class AdvertisingServiceMock extends AdvertisingService {
55
element.classList.add('block', 'bg-neutral-500', 'rounded-lg', 'overflow-hidden');
66
element.innerHTML = `
77
<div class="flex items-center justify-center h-full">
8-
<span>Ad Placeholder ${element.clientWidth}x${element.clientHeight}</span>
8+
<span>Ad Placeholder ${element.offsetWidth}x${element.offsetHeight}</span>
99
</div>
1010
`;
1111
return Promise.resolve();

src/lib/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ export const app = new App(
4040
: new TelemetryServiceMock()
4141
);
4242

43-
log.info(performance.now(), `Initialized ${base}.`);
43+
log.info(performance.now(), base ? `Initialized at ${base}.` : 'Initialized.');

0 commit comments

Comments
 (0)