Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

Commit bac8323

Browse files
committed
remove debugger for now
1 parent 119229b commit bac8323

File tree

3 files changed

+2
-27
lines changed

3 files changed

+2
-27
lines changed

src/app.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
<head>
55
<meta charset="utf-8" />
6+
<title>GrayTabby</title>
67
<link rel="icon" type="image/png" href="assets/img/blobbycat/browseraction128.png" />
78
<link rel="stylesheet" type="text/css" href="app.css" />
89
</head>

src/app.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,16 @@
33
* non-trivial logic here.
44
*/
55

6-
// Webpack uses MiniCssExtractPlugin when it sees this.
76
import { App } from './components/app';
87
import { DOCUMENT, PAGE_LOAD } from './lib/globals';
9-
import { loadAllTabGroups } from './lib/tabs_store';
108
import './style/app.scss';
119

12-
export class Debugger {
13-
async double(): Promise<void> {
14-
const groups = await loadAllTabGroups();
15-
let earliest = Math.min(...groups.map(g => g.date));
16-
const groupDiv: HTMLDivElement = DOCUMENT.get().querySelector('#groups');
17-
const promises: Promise<void>[] = [];
18-
for (const group of groups) {
19-
earliest -= 1000;
20-
// TODO
21-
// await ingestTabs(group.tabs, groupDiv, () => earliest);
22-
}
23-
await Promise.all(promises);
24-
}
25-
}
26-
27-
declare global {
28-
interface Window {
29-
gt: Debugger;
30-
}
31-
}
32-
3310
/**
3411
* The main entry point for GrayTabby.
3512
*/
3613
export async function graytabby(): Promise<void> {
37-
DOCUMENT.get().title = 'GrayTabby';
3814
const app = DOCUMENT.get().body.appendChild(App());
3915
await app.initialRender;
40-
DOCUMENT.get().defaultView.gt = new Debugger();
4116
}
4217

4318
graytabby().then(

src/components/app.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { PaginatorComponent } from './paginator';
1010

1111
async function ingestTabs(
1212
tabSummaries: BrowserTab[],
13-
groupsNode: HTMLDivElement,
1413
now = () => new Date().getTime(),
1514
): Promise<void> {
1615
if (tabSummaries.length == 0) return;
@@ -96,7 +95,7 @@ export function App(): AppElement {
9695
self.initialRender = render(0);
9796

9897
ARCHIVAL.get().sub(async summaries => {
99-
await ingestTabs(summaries, groupsWrapper);
98+
await ingestTabs(summaries);
10099
await render(0);
101100
});
102101

0 commit comments

Comments
 (0)