summaryrefslogtreecommitdiff
path: root/ext/js/display
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/display')
-rw-r--r--ext/js/display/display-generator.js9
-rw-r--r--ext/js/display/display.js2
2 files changed, 4 insertions, 7 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();
}
diff --git a/ext/js/display/display.js b/ext/js/display/display.js
index 4cd2d611..588508b5 100644
--- a/ext/js/display/display.js
+++ b/ext/js/display/display.js
@@ -318,7 +318,7 @@ export class Display extends EventDispatcher {
// Prepare
await this._hotkeyHelpController.prepare(this._application.api);
- await this._displayGenerator.prepare(this._application.api);
+ await this._displayGenerator.prepare();
this._queryParser.prepare();
this._history.prepare();
this._optionToggleHotkeyHandler.prepare();