mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Testing issues where SC_player not initialized correctly
This commit is contained in:
		| @@ -636,7 +636,7 @@ var List = { | ||||
|             }); | ||||
|         } else if(thisSong == undefined) { | ||||
|             if(full_playlist.length > 0) { | ||||
|                 List.exportToSoundCloud(full_playlist[0], 1); | ||||
|                 List.exportToSoundCloud(full_playlist[0], 0); | ||||
|             } | ||||
|         } else if(thisSong != undefined && i != undefined) { | ||||
|             var isFound = false; | ||||
|   | ||||
| @@ -973,12 +973,13 @@ function addDynamicListeners() { | ||||
|             window.callback = ""; | ||||
|         }; | ||||
|         soundcloud_window = window.open("/api/oauth#soundcloud=true&nonce=" + nonce, "", "width=600, height=600");*/ | ||||
|  | ||||
|         window.SC_player = SC_player; | ||||
|         SC_player.connect({"display":"page"}).then(function() { | ||||
|             Helper.removeClass("#playlist_loader_export", "hide"); | ||||
|             Helper.addClass(".soundcloud-export-button", "hide"); | ||||
|             Helper.removeClass(".exported-list-container", "hide"); | ||||
|             List.exportToSoundCloud(); | ||||
|             delete window.SC_player; | ||||
|         }); | ||||
|     }); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user