fix initial setting
authorLaurent Mazet <mazet@softndesign.org>
Tue, 27 Apr 2021 07:50:58 +0000 (09:50 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Tue, 27 Apr 2021 07:51:13 +0000 (09:51 +0200)
public/trivabble.js

index 721f9fa10fa4152849652fb2628c0d8f271ebaba..1af9d445ac8e6c81907a11100dfd3fc7aa206f37 100644 (file)
             playerName: getSetting("PlayerName"),
             boardLang: getSetting("BoardLang"),
             boardLabel: getSetting("BoardLabel"),
-            bagFactor: BoardList[getSetting("BoardLabel")].factor,
+            bagFactor: (typeof getSetting("BoardLabel") !== "undefined") ? BoardList[getSetting("BoardLabel")].factor : 1,
             version: VERSION,
             cmds: cmds
         };