Explorar el Código

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

Kristian Vos hace 1 año
padre
commit
199fe65187
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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 = () => {