mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 15:14:52 +09:00
Add loading of plugin info to the web interface via webpack Module Federation.
7 lines
267 B
React
7 lines
267 B
React
// Calculate basedir of application based on current location and
|
|
// the provided web_root from master server.
|
|
const location = new URL(window.webRoot, document.location);
|
|
const basename = location.pathname !== "/" ? location.pathname : "";
|
|
|
|
export default basename;
|