Skip to content

Commit

Permalink
Import all global JS upfront (#747)
Browse files Browse the repository at this point in the history
* Import all global JS upfront

* Sort imports lexigraphically
  • Loading branch information
jotaen authored Jul 19, 2021
1 parent 23e4ff3 commit 5d839bb
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion app/templates/custom-elements/change-hostname-dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ <h3>Changing Hostname</h3>
</div>
</template>

<script src="/js/util/poll.js"></script>
<script>
(function () {
const doc = (document._currentScript || document.currentScript)
Expand Down
1 change: 0 additions & 1 deletion app/templates/custom-elements/debug-dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ <h3>Debug Logs</h3>
</div>
</template>

<script src="/js/util/clipboard.js"></script>
<script>
(function () {
const doc = (document._currentScript || document.currentScript)
Expand Down
1 change: 0 additions & 1 deletion app/templates/custom-elements/shutdown-dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ <h3>Shutdown Complete</h3>
</div>
</template>

<script src="/js/controllers.js"></script>
<script>
(function () {
const doc = (document._currentScript || document.currentScript)
Expand Down
1 change: 0 additions & 1 deletion app/templates/custom-elements/update-dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ <h3>Update Complete</h3>
</div>
</template>

<script src="/js/util/poll.js"></script>
<script>
(function () {
const doc = (document._currentScript || document.currentScript)
Expand Down
1 change: 0 additions & 1 deletion app/templates/custom-elements/video-settings-dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ <h3>Applying Video Settings</h3>
</div>
</template>

<script src="/js/controllers.js"></script>
<script>
(function () {
const doc = (document._currentScript || document.currentScript)
Expand Down
3 changes: 3 additions & 0 deletions app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="csrf-token" content="{{ csrf_token() }}" />
<script src="/js/controllers.js"></script>
<script src="/js/util/clipboard.js"></script>
<script src="/js/util/poll.js"></script>
</head>
<body>
<!-- prettier-ignore -->
Expand Down

0 comments on commit 5d839bb

Please sign in to comment.