Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

chore: cleanup

Christian Fei1141fce21a31
diff --git a/client/components/video-element.js b/client/components/video-element.js
index 1846bf8..5dbcdfa 100644
--- a/client/components/video-element.js
+++ b/client/components/video-element.js
@@ -1,11 +1,3 @@
-function tryFormatDate(date) {
- try {
- return new Date(date).toISOString().substring(0, 10)
- } catch (err) {
- return 'N/A'
- }
-}
-
class VideoElement extends HTMLElement {
constructor () {
super()
@@ -219,3 +211,11 @@ class VideoElement extends HTMLElement {
}
customElements.define('video-element', VideoElement)
+
+function tryFormatDate(date) {
+ try {
+ return new Date(date).toISOString().substring(0, 10)
+ } catch (err) {
+ return 'N/A'
+ }
+}
\ No newline at end of file