aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display/display-generator.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/display/display-generator.js')
-rw-r--r--ext/js/display/display-generator.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/ext/js/display/display-generator.js b/ext/js/display/display-generator.js
index 621ea833..65736759 100644
--- a/ext/js/display/display-generator.js
+++ b/ext/js/display/display-generator.js
@@ -39,12 +39,9 @@ export class DisplayGenerator {
this._structuredContentGenerator = new StructuredContentGenerator(this._contentManager, document);
}
- /**
- * @param {import('../comm/api.js').API} api
- */
- async prepare(api) {
- const html = await api.getDisplayTemplatesHtml();
- this._templates.load(html);
+ /** */
+ async prepare() {
+ await this._templates.loadFromFiles(['/templates-display.html']);
this.updateHotkeys();
}