From 0e11b305671ceedbee408cb45c925ccc5947ed44 Mon Sep 17 00:00:00 2001 From: Benjamin Gerber Date: Thu, 10 Oct 2024 11:09:03 +0200 Subject: [PATCH] Remove __webpack_public_path__ workaround Using document.currentScript.src is problematic to load ngeo in a standalone way, with a type="module" --- src/controllers/bootstrap.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/controllers/bootstrap.js b/src/controllers/bootstrap.js index d7585a2f5c96..b4fab5d81af8 100644 --- a/src/controllers/bootstrap.js +++ b/src/controllers/bootstrap.js @@ -26,9 +26,6 @@ import config from 'gmfapi/store/config'; import 'ngeo/auth/index'; import 'ngeo/lidar/index'; -// eslint-disable-next-line no-undef -__webpack_public_path__ = new URL('./', document.currentScript.src).toString(); - /** * @param {string} scriptUrl The script URL */