Fix bug with previous change
This commit is contained in:
+2
-2
@@ -30,7 +30,7 @@ function onCraftingSelectorChanged() {
|
|||||||
if (recipeName === undefined) return;
|
if (recipeName === undefined) return;
|
||||||
if (count === undefined) return;
|
if (count === undefined) return;
|
||||||
|
|
||||||
updatePageState(count, receipeName);
|
updatePageState(count, recipeName);
|
||||||
|
|
||||||
var recipe = findRecipe(recipeName);
|
var recipe = findRecipe(recipeName);
|
||||||
if (recipe === undefined) {
|
if (recipe === undefined) {
|
||||||
@@ -131,7 +131,7 @@ function updateCraftingSelector() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function updatePageState() {
|
function updatePageState(count, recipeName) {
|
||||||
var newTitle = "Crafting Guide: " + count + " " + recipeName;
|
var newTitle = "Crafting Guide: " + count + " " + recipeName;
|
||||||
var newLink = "?count=" + count + "&recipeName=" + encodeURIComponent(recipeName);
|
var newLink = "?count=" + count + "&recipeName=" + encodeURIComponent(recipeName);
|
||||||
newLink = newLink.replace(/%20/g, "+");
|
newLink = newLink.replace(/%20/g, "+");
|
||||||
|
|||||||
Reference in New Issue
Block a user