It is worth mentioning that you are not required to include ${body} in a
custom html template. If you need to customize the app startup, you can
skip ${body} completely and write your <script> tag from scratch.- Josh On Tuesday, August 27, 2019, Chris Velevitch <[email protected]> wrote: > Where is the value of "${body}" defined? When I build a javascript app, the > following code is inserted there:- > > <script> > new MyApp().start(); > </script> > > I want to be able to insert additional code there like:- > > <script type="text/javascript"> > royaleCompatibility = new RoyaleCompatibility(); > if (royaleCompatibility.isCompatible) { > new MyApp().start(); > } else { > royaleCompatibility.displayIncompatibilityText(); > } > </script> > > > How do I do that? > -- -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev>
