mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-02 04:17:24 +02:00
Compare commits
No commits in common. "9967ab4aa821fb18fcdd8fd6e47794a957c3aa3a" and "2294a510b05a382b96e5a70fcb6edd127aa6608a" have entirely different histories.
9967ab4aa8
...
2294a510b0
@ -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) };
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user