iframeResizer does not currently play nicely with webpack. Load it
directly via script tag for now.
This resolves a problem where the iframe fails to fill the screen when
loading the reports UI in the browser client.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
<script src="[% ctx.media_prefix %]/js/ui/default/staff/build/js/moment-with-locales.min.js"></script>
<script src="[% ctx.media_prefix %]/js/ui/default/staff/build/js/moment-timezone-with-data.min.js"></script>
+<!--
+ Load iframeResize via script tag
+ https://bugs.launchpad.net/evergreen/+bug/1753008
+-->
+<script src="[% ctx.media_prefix %]/js/ui/default/staff/build/js/iframeResizer.min.js"></script>
+
<!-- evergreen core services -->
<script src="[% ctx.media_prefix %]/js/ui/default/staff/build/js/core.bundle.js"></script>
// https://github.com/webpack/webpack/issues/3128
const JS_FILES = [
'./node_modules/moment/min/moment-with-locales.min.js',
- './node_modules/moment-timezone/builds/moment-timezone-with-data.min.js'
+ './node_modules/moment-timezone/builds/moment-timezone-with-data.min.js',
+ './node_modules/iframe-resizer/js/iframeResizer.contentWindow.min.js',
+ './node_modules/iframe-resizer/js/iframeResizer.min.js'
]
'ng-toast',
'angular-tree-control',
'angular-tree-control/context-menu.js',
- 'iframe-resizer',
'angular-order-object-by',
'lovefield',
'angular-tablesort'