diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-06-26 15:49:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-26 15:49:23 -0400 |
commit | e5284988e2beda4133caae8a6b1c7e4d16f4328b (patch) | |
tree | 237507bacc2944df1745fc91cb5de94c2e481421 /ext/js/display/display-generator.js | |
parent | fcf651c22556a0f273b7127cca44c411fea2e87f (diff) |
Structured content generation updates (#1760)
* Simplify _createElement, fix misuse of classList
* Don't use templates to generate image content
* Omit templates
Diffstat (limited to 'ext/js/display/display-generator.js')
-rw-r--r-- | ext/js/display/display-generator.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/js/display/display-generator.js b/ext/js/display/display-generator.js index 74b3fdca..737fa72a 100644 --- a/ext/js/display/display-generator.js +++ b/ext/js/display/display-generator.js @@ -27,14 +27,13 @@ class DisplayGenerator { this._mediaLoader = mediaLoader; this._hotkeyHelpController = hotkeyHelpController; this._templates = null; - this._structuredContentGenerator = null; + this._structuredContentGenerator = new StructuredContentGenerator(this._mediaLoader, document); this._termPitchAccentStaticTemplateIsSetup = false; } async prepare() { const html = await yomichan.api.getDisplayTemplatesHtml(); this._templates = new HtmlTemplateCollection(html); - this._structuredContentGenerator = new StructuredContentGenerator(this._templates, this._mediaLoader, document); this.updateHotkeys(); } |