Added new 'pretty' recipe format to make URLs more readable

This commit is contained in:
n1474335 committed 2017-08-15 16:26:42 +00:00
1 parent 2a4c9afdf2
commit cf1ba60a10
7 files changed
+175 -11

No files matched your search

+3
View File
@@ -295,6 +295,9 @@ RecipeWaiter.prototype.getConfig = function() {
option: ingList[j].previousSibling.children[0].textContent.slice(0, -1),
string: ingList[j].value
};
} else if (ingList[j].getAttribute("type") === "number") {
// number
ingredients[j] = parseFloat(ingList[j].value, 10);
} else {
// all others
ingredients[j] = ingList[j].value;