Compare commits

..

No commits in common. "9967ab4aa821fb18fcdd8fd6e47794a957c3aa3a" and "2294a510b05a382b96e5a70fcb6edd127aa6608a" have entirely different histories.

View File

@ -121,10 +121,7 @@ class GenericL10n extends L10n {
const { href } = document.querySelector(`link[type="application/l10n"]`);
const paths = await fetchData(href, /* type = */ "json");
return {
baseURL: href.substring(0, href.lastIndexOf("/") + 1) || "./",
paths,
};
return { baseURL: href.replace(/[^/]*$/, "") || "./", paths };
} catch {}
return { baseURL: "./", paths: Object.create(null) };
}