summaryrefslogtreecommitdiff
path: root/ext/mixed/js/display.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-27 18:58:11 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-01-16 22:39:26 -0500
commit7686e56c00c724ad6f9e133134787e2cd083b062 (patch)
treecc8b5568543f2c5206e69677b6cf3fac2d16a9e4 /ext/mixed/js/display.js
parentd512c111f6a5918eb3dfca3c0e3d5d69e73fb8b7 (diff)
Move display templates into a single file
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r--ext/mixed/js/display.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index eabb73ca..75b43aa0 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -356,6 +356,11 @@ class Display {
window.focus();
}
+ if (!this.displayGenerator.isInitialized()) {
+ await this.displayGenerator.initialize();
+ if (this.setContentToken !== token) { return; }
+ }
+
this.definitions = definitions;
if (context.disableHistory) {
delete context.disableHistory;
@@ -415,6 +420,11 @@ class Display {
window.focus();
}
+ if (!this.displayGenerator.isInitialized()) {
+ await this.displayGenerator.initialize();
+ if (this.setContentToken !== token) { return; }
+ }
+
this.definitions = definitions;
if (context.disableHistory) {
delete context.disableHistory;