You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
559 B

  1. /* This sets up webpack's chunk loading to load resources from the same
  2. directory where it loaded index.js from. This file must be imported
  3. before any lazy-loading is being attempted. */
  4. if (document.currentScript && document.currentScript.src) {
  5. const url = new URL(document.currentScript.src);
  6. __webpack_public_path__ = `${url.pathname.replace(/\/[^/]*$/, '')}/`;
  7. } else {
  8. // compat: IE11
  9. const script = document.querySelector('script[src*="/index.js"]');
  10. __webpack_public_path__ = `${script.getAttribute('src').replace(/\/[^/]*$/, '')}/`;
  11. }