2 lines
103 B
JavaScript
2 lines
103 B
JavaScript
|
var match = location.pathname.match(/^\/apps\/([^/]*)\//);
|
||
|
window.routerBase = match ? match[0] : "/";
|