Update index.html
Fix case where taskboard is hosted at the base url String.indexOf(x) returns 0 when x is at the beginning of the source string, and -1 if it is not found.
This commit is contained in:
parent
1728dac96c
commit
ab08f79721
@ -29,7 +29,7 @@
|
|||||||
['/boards', '/settings', '/dashboard'].forEach(p => {
|
['/boards', '/settings', '/dashboard'].forEach(p => {
|
||||||
const i = path.indexOf(p)
|
const i = path.indexOf(p)
|
||||||
|
|
||||||
if (i > 0) {
|
if (i >= 0) {
|
||||||
path = path.substring(0, i);
|
path = path.substring(0, i);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user