🐛 Fix bug that page did load white after version update

This commit is contained in:
Jan Oberhauser
2019-09-11 20:14:59 +02:00
parent d6b8b9544f
commit 90f2dcb4c9

View File

@@ -188,7 +188,7 @@ class App {
this.app.use(history({
rewrites: [
{
from: new RegExp(`^\/(rest|${this.endpointWebhook}|${this.endpointWebhookTest})\/.*$`),
from: new RegExp(`^\/(rest|css|js|${this.endpointWebhook}|${this.endpointWebhookTest})\/.*$`),
to: (context) => {
return context.parsedUrl!.pathname!.toString();
}