X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/3debff60ef50158c5439003ad4357d1f3dcc120b..0a15112423ebe2b2fece82f94ee67e3416d1cecb:/app/assets/javascripts/index/directions.js diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index a58b0af16..18466864b 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -327,14 +327,14 @@ OSM.Directions = function (map) { } var chosenEngineIndex = findEngine("fossgis_osrm_car"); - if ($.cookie("_osm_directions_engine")) { - chosenEngineIndex = findEngine($.cookie("_osm_directions_engine")); + if (Cookies.get("_osm_directions_engine")) { + chosenEngineIndex = findEngine(Cookies.get("_osm_directions_engine")); } setEngine(chosenEngineIndex); select.on("change", function (e) { chosenEngine = engines[e.target.selectedIndex]; - $.cookie("_osm_directions_engine", chosenEngine.id, { secure: true, expires: expiry, path: "/" }); + Cookies.set("_osm_directions_engine", chosenEngine.id, { secure: true, expires: expiry, path: "/", samesite: "lax" }); getRoute(true, true); });