Fixed nested recipes costs calculation (fixes #299)

This commit is contained in:
Bernd Bestel
2019-07-06 14:48:46 +02:00
parent 67cfd0ba5f
commit b76e51ba41
4 changed files with 113 additions and 2 deletions

View File

@@ -37,6 +37,13 @@ GetUriParam = function(key)
}
};
UpdateUriParam = function(key, value)
{
var queryParameters = new URLSearchParams(location.search);
queryParameters.set(key, value);
window.history.replaceState({ }, "", decodeURIComponent(`${location.pathname}?${queryParameters}`));
};
IsTouchInputDevice = function()
{
if (("ontouchstart" in window) || window.DocumentTouch && document instanceof DocumentTouch)