Make all image URLs absolute and fix path for viewer (#15788)

This commit is contained in:
eskyuu
2024-02-01 12:09:44 +08:00
committed by GitHub
parent 11246ca8e1
commit 81bf68ba88
3 changed files with 4 additions and 2 deletions

View File

@@ -63,7 +63,7 @@
var network_nodes = new vis.DataSet({queue: {delay: 100}});
var network_edges = new vis.DataSet({queue: {delay: 100}});
var node_device_map = {};
var custom_image_base = "images/custommap/icons/";
var custom_image_base = "{{ $base_url }}images/custommap/icons/";
function CreateNetwork() {
// Flush the nodes and edges so they are rendered immediately

View File

@@ -33,7 +33,7 @@
var edge_port_map = {};
var node_device_map = {};
var node_link_map = {};
var custom_image_base = "images/custommap/";
var custom_image_base = "{{ $base_url }}images/custommap/icons/";
function CreateNetwork() {
// Flush the nodes and edges so they are rendered immediately