Skip to content

Commit 7627253

Browse files
committed
Add a bit of logging.
1 parent 5f0eac8 commit 7627253

File tree

1 file changed

+4
-0
lines changed
  • browser-extension/src/entrypoints/popup

1 file changed

+4
-0
lines changed

browser-extension/src/entrypoints/popup/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import './style.css'
22
import type { CommentState } from '../background'
33
import { EnhancerRegistry } from '../../lib/registries'
4+
import { logger } from '../../lib/logger'
45

56
const enhancers = new EnhancerRegistry()
67

@@ -38,8 +39,11 @@ function createSpotElement(commentState: CommentState): HTMLElement {
3839
}
3940

4041
async function renderOpenSpots(): Promise<void> {
42+
logger.debug('renderOpenSpots')
4143
const app = document.getElementById('app')!
44+
logger.debug('waiting on getOpenSpots')
4245
const spots = await getOpenSpots()
46+
logger.debug('got', spots)
4347

4448
if (spots.length === 0) {
4549
app.innerHTML = '<div class="no-spots">No open comment spots</div>'

0 commit comments

Comments
 (0)