Skip to content

Commit 313b82a

Browse files
authored
sfwebui: Use user-defined doc root path for static JS (#1821)
1 parent e17b230 commit 313b82a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

spiderfoot/static/js/spiderfoot.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ sf.remove_sfurltag = function (data) {
8383

8484
sf.search = function (scan_id, value, type, postFunc) {
8585
sf.fetchData(
86-
"/search",
86+
docroot + "/search",
8787
{ id: scan_id, eventType: type, value: value },
8888
postFunc
8989
);
@@ -92,7 +92,7 @@ sf.search = function (scan_id, value, type, postFunc) {
9292
sf.deleteScan = function(scan_id, callback) {
9393
var req = $.ajax({
9494
type: "GET",
95-
url: "/scandelete?id=" + scan_id
95+
url: docroot + "/scandelete?id=" + scan_id
9696
});
9797
req.done(function() {
9898
alertify.success('<i class="glyphicon glyphicon-ok-circle"></i> <b>Scans Deleted</b><br/><br/>' + scan_id.replace(/,/g, "<br/>"));
@@ -108,7 +108,7 @@ sf.deleteScan = function(scan_id, callback) {
108108
sf.stopScan = function(scan_id, callback) {
109109
var req = $.ajax({
110110
type: "GET",
111-
url: "/stopscan?id=" + scan_id
111+
url: docroot + "/stopscan?id=" + scan_id
112112
});
113113
req.done(function() {
114114
alertify.success('<i class="glyphicon glyphicon-ok-circle"></i> <b>Scans Aborted</b><br/><br/>' + scan_id.replace(/,/g, "<br/>"));

0 commit comments

Comments
 (0)