Skip to content

Commit

Permalink
update ciSiteURL
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsn committed Oct 28, 2023
1 parent cdda18d commit e2ed766
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/Debug/Toolbar/Views/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ var ciDebugBar = {
},

hotReloadConnect: function () {
const eventSource = new EventSource(ciSiteURL + "__hot-reload");
const eventSource = new EventSource(ciSiteURL + "/__hot-reload");

eventSource.addEventListener("reload", function (e) {
console.log("reload", e);
Expand Down
2 changes: 1 addition & 1 deletion system/Debug/Toolbar/Views/toolbar.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</style>

<script id="toolbar_js">
var ciSiteURL = "<?= site_url() ?>"
var ciSiteURL = "<?= rtrim(site_url(), '/') ?>"
<?= file_get_contents(__DIR__ . '/toolbar.js') ?>
</script>
<div id="debug-icon" class="debug-bar-ndisplay">
Expand Down

0 comments on commit e2ed766

Please sign in to comment.