mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 19:05:32 -04:00
Respect base URL in WS connections
This commit is contained in:
parent
4645582f5d
commit
5271d12f4c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user