소스 검색

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

Kristian Vos 3 년 전
부모
커밋
ba0ad2b086
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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", {