Add https support

This commit is contained in:
jableader 2024-09-21 13:07:05 +10:00
parent 30d62737ab
commit 84a76151e4

View file

@ -1,4 +1,4 @@
const BASE_URL = window.location.href.replace(/^(http:\/\/[^/]+).*/, "$1/api");
const BASE_URL = window.location.href.replace(/^(https?:\/\/[^/]+).*/, "$1/api");
const datesToFix = {
Meal: { fields: [ "suggested_date", "purchase_date", "consumed_date" ] },