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:
marner2 2020-07-02 08:44:48 -05:00 committed by GitHub
parent 1728dac96c
commit ab08f79721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@
['/boards', '/settings', '/dashboard'].forEach(p => {
const i = path.indexOf(p)
if (i > 0) {
if (i >= 0) {
path = path.substring(0, i);
}
});