summaryrefslogtreecommitdiff
path: root/ext/js/display/popup-main.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-06 14:31:23 -0500
committerGitHub <noreply@github.com>2021-03-06 14:31:23 -0500
commit01f74510f011e54d452e8fce2b9221b0af942911 (patch)
tree4509800d4a40fff18da979818db3e118a03148fb /ext/js/display/popup-main.js
parent6e00b5d765dbcb580f93d1cdf6326169710cf36a (diff)
Separate display resizer (#1494)
* Make invokeContentOrigin public * Move display resizer functionality into a new class: DisplayResizer * Simplify field names * Use parent frame instead of content origin * Remove unused
Diffstat (limited to 'ext/js/display/popup-main.js')
-rw-r--r--ext/js/display/popup-main.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/js/display/popup-main.js b/ext/js/display/popup-main.js
index 55f19984..0b5e338d 100644
--- a/ext/js/display/popup-main.js
+++ b/ext/js/display/popup-main.js
@@ -18,6 +18,7 @@
/* global
* Display
* DisplayProfileSelection
+ * DisplayResizer
* DocumentFocusController
* HotkeyHandler
* JapaneseUtil
@@ -43,6 +44,9 @@
const displayProfileSelection = new DisplayProfileSelection(display);
displayProfileSelection.prepare();
+ const displayResizer = new DisplayResizer(display);
+ displayResizer.prepare();
+
display.initializeState();
document.documentElement.dataset.loaded = 'true';