mirror of
https://github.com/dmuth/diceware.git
synced 2024-11-28 06:22:11 -05:00
Added Javascript to use the EFF wordlist for when 5 dice are used. #6
This commit is contained in:
parent
898377962a
commit
df4baee163
1 changed files with 9 additions and 1 deletions
10
main.js
10
main.js
|
@ -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 + "'!");
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue