Skip to content

Commit

Permalink
flash all the things
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed May 15, 2024
1 parent 22631bb commit 1331829
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions content/translators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,7 @@ export const Translators = new class { // eslint-disable-line @typescript-eslint
this.uninstall('BetterBibTeX JSON (for debugging)')
log.debug('translators startup: cleaned')

try {
await Promise.race([
this.installTranslators(),
(async () => {
await Zotero.Promise.delay(20000)
throw new Error('translator init timed out')
})(),
])
}
catch (err) {
flash('Failed to load translators', 'BBT could not load its translators, installation timed out')
}
await this.installTranslators()

log.debug('translators startup: finished')
this.ready.resolve(true)
Expand Down

0 comments on commit 1331829

Please sign in to comment.