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