Skip to content

Commit e2ed766

Browse files
committed
update ciSiteURL
1 parent cdda18d commit e2ed766

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

system/Debug/Toolbar/Views/toolbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ var ciDebugBar = {
650650
},
651651

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

655655
eventSource.addEventListener("reload", function (e) {
656656
console.log("reload", e);

system/Debug/Toolbar/Views/toolbar.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</style>
2424

2525
<script id="toolbar_js">
26-
var ciSiteURL = "<?= site_url() ?>"
26+
var ciSiteURL = "<?= rtrim(site_url(), '/') ?>"
2727
<?= file_get_contents(__DIR__ . '/toolbar.js') ?>
2828
</script>
2929
<div id="debug-icon" class="debug-bar-ndisplay">

0 commit comments

Comments
 (0)