Skip to content

Commit

Permalink
Merge legacy into the main build to avoid caching issues
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Jun 17, 2021
1 parent 455d1bb commit 6385001
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
8 changes: 2 additions & 6 deletions raw_package/index.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
<script src="{{ get_static_file_url('js/vendor/jquery-validate/jquery.validate.min.js') }}"></script>
<script src="{{ get_static_file_url('js/vendor/materialize/materialize.min.js') }}"></script>
<script src="{{ get_static_file_url('js/vendor/materialize-stepper/materialize-stepper.min.js') }}"></script>
<script
src="{{ get_static_file_url('js/esphome/index.js') }}"
type="module"
></script>

{% if streamer_mode %}
<style>
Expand Down Expand Up @@ -474,8 +470,8 @@ <h4>
charset="utf-8"
></script>
<script
src="{{ get_static_file_url('js/esphome.js') }}"
type="text/javascript"
src="{{ get_static_file_url('js/esphome/index.js') }}"
type="module"
></script>

{% if begin and len(entries) == 1 %}
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "./legacy";
import { attachOnlineStatus } from "./online_status";
import { attachInstallUpdate } from "./install-update";
import { attachWizard } from "./wizard";
Expand Down
2 changes: 0 additions & 2 deletions raw_package/static/js/esphome.js → src/legacy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

// Document Ready
$(document).ready(function () {
M.AutoInit(document.body);
Expand Down

0 comments on commit 6385001

Please sign in to comment.