We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f0eac8 commit 7627253Copy full SHA for 7627253
browser-extension/src/entrypoints/popup/main.ts
@@ -1,6 +1,7 @@
1
import './style.css'
2
import type { CommentState } from '../background'
3
import { EnhancerRegistry } from '../../lib/registries'
4
+import { logger } from '../../lib/logger'
5
6
const enhancers = new EnhancerRegistry()
7
@@ -38,8 +39,11 @@ function createSpotElement(commentState: CommentState): HTMLElement {
38
39
}
40
41
async function renderOpenSpots(): Promise<void> {
42
+ logger.debug('renderOpenSpots')
43
const app = document.getElementById('app')!
44
+ logger.debug('waiting on getOpenSpots')
45
const spots = await getOpenSpots()
46
+ logger.debug('got', spots)
47
48
if (spots.length === 0) {
49
app.innerHTML = '<div class="no-spots">No open comment spots</div>'
0 commit comments