Make base rewriting script account for /files urls

Make the file preview screen work. Previously it was setting the base element equal to the full url in the file preview screen, breaking the script loading.
This commit is contained in:
marner2 2020-07-03 13:26:32 -05:00 committed by GitHub
parent d664355ffa
commit 0d66dd9081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@
(function () {
var path = window.location.pathname;
['/boards', '/settings', '/dashboard'].forEach(p => {
['/boards', '/settings', '/dashboard', '/files'].forEach(p => {
const i = path.indexOf(p)
if (i >= 0) {