Skip to content

Commit

Permalink
Change api endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Truiteseche committed Mar 25, 2024
1 parent 5f73aed commit e327e84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ function isWeekdayAndBusinessHours() {

export function getProxiedURL(url, bait = false) {
const proxyURL = "https://api.ecole-directe.plus/proxy?url=";
if (!bait || (isWeekdayAndBusinessHours() && location.hostname === "ecole-directe.plus")) {
// || (isWeekdayAndBusinessHours() && location.hostname === "ecole-directe.plus")
if (!bait) {
return proxyURL + encodeURIComponent(url);
} else {
return url;
Expand Down

0 comments on commit e327e84

Please sign in to comment.