mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-30 00:00:43 -04:00
Respect base URL in WS connections
This commit is contained in:
@@ -6,7 +6,7 @@ const component = () => {
|
|||||||
toggling: false,
|
toggling: false,
|
||||||
|
|
||||||
init() {
|
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 => {
|
ws.onmessage = event => {
|
||||||
const data = JSON.parse(event.data);
|
const data = JSON.parse(event.data);
|
||||||
this.jobs = data.jobs;
|
this.jobs = data.jobs;
|
||||||
|
|||||||
Reference in New Issue
Block a user