Prechádzať zdrojové kódy

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

Kristian Vos 3 rokov pred
rodič
commit
ba0ad2b086

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