Browse Source

firstChild is read-only, thanks to @programulya

Maxim Sokhatsky 11 years ago
parent
commit
1eb0393ff8
1 changed files with 3 additions and 2 deletions
  1. 3 2
      apps/web/priv/static/app/js/bootloader.js

+ 3 - 2
apps/web/priv/static/app/js/bootloader.js

@@ -47,8 +47,9 @@ function initDiscards() {
       {name:"Alina-Discard",    hand:"Player-Right-Hand"},
       {name:"Mustafa-Discard",  hand:"Player-Center-Hand"},
       {name:"You-Discard",      hand:"Player-Me-Hand"}                 ].map(function(e) {
-        document.getElementById(e.name).firstElementChild.remove();
-        document.getElementById(e.name).appendChild(svg(discarder(e.hand))); });
+//        document.getElementById(e.name).firstElementChild.remove();
+        document.getElementById(e.name).appendChild(svg(discarder(e.hand)));
+         });
 }
 
 function card(line,pos,col,v) {