From db0605095fd2755212727ca5118e0f3e63efd415 Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Mon, 19 Aug 2013 18:11:11 -0700 Subject: [PATCH] Fix bug with previous change --- html/crafting.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/crafting.js b/html/crafting.js index bf58d3a29..8f052b683 100644 --- a/html/crafting.js +++ b/html/crafting.js @@ -30,7 +30,7 @@ function onCraftingSelectorChanged() { if (recipeName === undefined) return; if (count === undefined) return; - updatePageState(count, receipeName); + updatePageState(count, recipeName); var recipe = findRecipe(recipeName); if (recipe === undefined) { @@ -131,7 +131,7 @@ function updateCraftingSelector() { } } -function updatePageState() { +function updatePageState(count, recipeName) { var newTitle = "Crafting Guide: " + count + " " + recipeName; var newLink = "?count=" + count + "&recipeName=" + encodeURIComponent(recipeName); newLink = newLink.replace(/%20/g, "+");