From e03d6277698f4e1e03d9336ba017bae130d4353c Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 11 Mar 2020 20:34:54 +0100 Subject: Misc JS linting and naming tweaks (#10652) - lowercase all js filenames except Vue components - enable new lint rules, mostly focused on shorter code - autofix new lint violations - apply misc transformations indexOf -> includes and onevent-> addEventListener Co-authored-by: Antoine GIRARD --- web_src/js/publicPath.js | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 web_src/js/publicPath.js (limited to 'web_src/js/publicPath.js') diff --git a/web_src/js/publicPath.js b/web_src/js/publicPath.js deleted file mode 100644 index 120740d708..0000000000 --- a/web_src/js/publicPath.js +++ /dev/null @@ -1,11 +0,0 @@ -/* This sets up webpack's chunk loading to load resources from the 'public' - directory. This file must be imported before any lazy-loading is being attempted. */ - -if (document.currentScript && document.currentScript.src) { - const url = new URL(document.currentScript.src); - __webpack_public_path__ = url.pathname.replace(/\/[^/]*?\/[^/]*?$/, '/'); -} else { - // compat: IE11 - const script = document.querySelector('script[src*="/index.js"]'); - __webpack_public_path__ = script.getAttribute('src').replace(/\/[^/]*?\/[^/]*?$/, '/'); -} -- cgit v1.2.3