mirror of
https://github.com/hkalexling/Mango.git
synced 2026-01-24 00:03:14 -05:00
Respect base URL in WS connections
This commit is contained in:
@@ -6,7 +6,7 @@ const component = () => {
|
||||
toggling: false,
|
||||
|
||||
init() {
|
||||
const ws = new WebSocket(`ws://${location.host}/api/admin/mangadex/queue`);
|
||||
const ws = new WebSocket(`ws://${location.host}${base_url}api/admin/mangadex/queue`);
|
||||
ws.onmessage = event => {
|
||||
const data = JSON.parse(event.data);
|
||||
this.jobs = data.jobs;
|
||||
|
||||
Reference in New Issue
Block a user