Browse Source

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

Kristian Vos 1 year ago
parent
commit
199fe65187
1 changed files with 4 additions and 1 deletions
  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 = () => {