mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-03-31 07:12:23 -07:00
Use getApiBase() to get GraphQL Endpoint.
This commit is contained in:
@@ -23,11 +23,9 @@ showSpinner()
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
const protocol = window.location.protocol.replace(':', '');
|
||||
const host = window.location.hostname;
|
||||
const apiToken = getSetting("API_TOKEN");
|
||||
const port = getSetting("GRAPHQL_PORT");
|
||||
const graphqlUrl = `${protocol}://${host}:${port}/graphql`;
|
||||
const apiBase = getApiBase();
|
||||
const graphqlUrl = `${apiBase}/graphql`;
|
||||
|
||||
$('#appevents-table').DataTable({
|
||||
processing: true,
|
||||
|
||||
Reference in New Issue
Block a user