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:
parent
d664355ffa
commit
0d66dd9081
@ -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) {
|
||||
|
Reference in New Issue
Block a user