Browse Source

refactor: to be safe, added trailing slash to URL startsWith check

Kristian Vos 2 years ago
parent
commit
ba0ad2b086
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frontend/src/components/modals/EditSong/index.vue

+ 1 - 1
frontend/src/components/modals/EditSong/index.vue

@@ -757,7 +757,7 @@ export default {
 			return (
 				this.songDataLoaded &&
 				this.song.thumbnail &&
-				this.song.thumbnail.startsWith("https://i.ytimg.com")
+				this.song.thumbnail.startsWith("https://i.ytimg.com/")
 			);
 		},
 		...mapState("modals/editSong", {