web: Fix error in demo when selecting None for sample (close #2416)
This commit is contained in:
parent
b2f5f807de
commit
b2594b2b6c
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue