소스 검색

fix: change null soundcloud iframe src to blank player page instead of null to fix weird issues in some browsers

Kristian Vos 1 년 전
부모
커밋
199fe65187
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      frontend/src/composables/useSoundcloudPlayer.ts

+ 4 - 1
frontend/src/composables/useSoundcloudPlayer.ts

@@ -251,7 +251,10 @@ export const useSoundcloudPlayer = () => {
 			return;
 		}
 		if (!url) widgetId.value = null;
-		soundcloudIframeElement.value.setAttribute("src", url);
+		soundcloudIframeElement.value.setAttribute(
+			"src",
+			url ?? `${soundcloudDomain}/player`
+		);
 	};
 
 	const documentUnlockEventListener = () => {