Added Javascript to use the EFF wordlist for when 5 dice are used. #6

This commit is contained in:
Douglas Muth 2017-07-09 13:37:09 -04:00
parent 898377962a
commit df4baee163

10
main.js
View file

@ -536,7 +536,15 @@ Diceware.go = function() {
console.log("Rolling " + Diceware.num_dice_per_roll + " dice per roll");
var js = "./wordlist/wordlist-" + dice + "-dice.js";
var file = "wordlist-" + dice + "-dice.js";
if (dice == 5) {
//
// 5 Dice? Let's use the EFF version.
//
file = "wordlist-" + dice + "-dice-eff.js";
}
var js = "./wordlist/" + file;
console.log("Looks like we're loading '" + js + "'!");
//