Skip to content

Commit 7e02ec6

Browse files
committed
feat: add a check every minute for new bases
1 parent 19d72f2 commit 7e02ec6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/main.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ export default class ThumbnailPlugin extends Plugin {
6060
})
6161

6262
this.addSettingTab(new SettingTab(this.app, this));
63+
64+
this.registerInterval(window.setInterval(() => {
65+
(async () => {
66+
console.debug("Automatically generating thumbnails...");
67+
await getBases(this);
68+
})().catch(e => console.error("Thumbnails -", e));
69+
}, 1 * 60 * 1000));
6370
}
6471

6572
onunload() {

0 commit comments

Comments
 (0)