[ Help | Earliest Comments | Latest Comments ][ List All Subjects of Discussion | Create New Subject of Discussion ][ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]Single Comment Play Chess Variants with Jocly. Missing description[All Comments] [Add Comment or Rating] François Houdebert wrote on Fri, Feb 16, 2024 11:19 AM EST in reply to H. G. Muller from Wed Feb 14 02:52 AM:I believe that the view-as bug comes from jocly/examples/browser/js/control.js line 236 I think adding a test like could solve it. I didn’t dare doing it. if(viewAs===undefined || Object.is(viewAs, null) || viewAs==="null") viewAs="player-a"; It probably comes from string like "xxxx.view-as": "null" in window.localStorage
I believe that the view-as bug comes from
jocly/examples/browser/js/control.js line 236
I think adding a test like could solve it. I didn’t dare doing it.
if(viewAs===undefined || Object.is(viewAs, null) || viewAs==="null")
viewAs="player-a";
It probably comes from string like "xxxx.view-as": "null" in window.localStorage