web: Fix error in demo when selecting None for sample (close #2416)

This commit is contained in:
Maxwell DeKock 2021-01-21 15:53:01 -08:00 committed by Mike Welsh
parent b2f5f807de
commit b2594b2b6c
1 changed files with 2 additions and 2 deletions

View File

@ -84,8 +84,8 @@ function sampleFileSelected() {
localFileInput.value = null;
player.load({ url: swfData.location, ...config });
} else {
document.getElementById("main").children[0].remove();
player = ruffle.create_player();
container.children[0].remove();
player = ruffle.createPlayer();
player.id = "player";
container.append(player);
authorContainer.style.display = "none";