Mercurial > piecrust2
diff piecrust/admin/assets/js/foodtruck.js @ 921:628d639bb30b
serve: Fix the notifications when publishing a site from the admin panel.
The URL of the publish log is still hard-coded but that's enough for now.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 29 Sep 2017 08:45:48 -0700 |
parents | 5e91bc0e3b4d |
children | cebeedfa034f |
line wrap: on
line diff
--- a/piecrust/admin/assets/js/foodtruck.js Fri Sep 29 08:45:06 2017 -0700 +++ b/piecrust/admin/assets/js/foodtruck.js Fri Sep 29 08:45:48 2017 -0700 @@ -56,7 +56,8 @@ }; if (!!window.EventSource) { - var source = new EventSource('/publish-log'); + // TODO: this only works when the Foodtruck blueprint is added under `/pc-admin`. + var source = new EventSource('/pc-admin/publish-log'); source.onerror = function(e) { console.log("Error with SSE, closing.", e); source.close();