mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 07:24:52 +09:00
Create clusterio/web_ui package and move all of the web interface files to it in order to be able to share the interface components with plugins.
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;
|