Skip to content

Commit 599e690

Browse files
committed
Clean up
1 parent e1cd2f2 commit 599e690

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

assets/js/app.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
console.log("app.js executing");
2-
31
// webpack automatically bundles all modules in your
42
// entry points. Those entry points can be configured
53
// in "webpack.config.js".
@@ -11,10 +9,6 @@ import { Socket } from "phoenix";
119
import { LiveSocket } from "phoenix_live_view";
1210
import topbar from "../vendor/topbar";
1311

14-
// window.IMPORTS = {
15-
// DOMTesting: import("@testing-library/dom")
16-
// };
17-
1812
window.IMPORT = {
1913
DOMTesting: () => import("@testing-library/dom")
2014
};
@@ -27,7 +21,7 @@ let liveSocket = new LiveSocket("/live", Socket, {
2721
hooks: {
2822
PreCode: {
2923
mounted() {
30-
this._highlight(); //
24+
this._highlight();
3125
},
3226
updated() {
3327
this._highlight();
@@ -72,13 +66,8 @@ liveSocket.connect();
7266
window.liveSocket = liveSocket;
7367

7468
window.customElements.define('loading-stopwatch', class extends HTMLElement {
75-
constructor() {
76-
super();
77-
}
78-
7969
connectedCallback() {
80-
console.log('GO!')
81-
const start = Date.now()
70+
const start = Date.now();
8271
this.interval = setInterval(() => {
8372
const duration = ((Date.now() - start) / 1000).toFixed(1);
8473
this.innerText = `${duration}s`;

0 commit comments

Comments
 (0)