Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21f9b404 authored by Florent VINCENT's avatar Florent VINCENT 👾
Browse files

Update etheme.js to add a custom header to async GETs as temporary workaround to bots.

parent be83e057
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ $(document).ready(function(){
  });

  if ($("#main_results").has(".first-page-media-results").length) {
    var headers = {"Content-Type": "application/json"};
    var headers = {"Content-Type": "application/json","X-e-async":"true"};
    var query_params = $.param({
      "format": "json",
      "q": $("#q").attr("value"),