浏览代码

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", {