Skip to content

Commit 1ff84ed

Browse files
authored
Update widget.js
1 parent 452c4b6 commit 1ff84ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/widget.js

+4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ const dropArea = document.querySelector(".blst-drag-area"),
44
input = dropArea.querySelector(".blst-input");
55

66
const example = document.querySelector("#example_href");
7+
const nathan = document.querySelector("#nathan_href");
78
if (example) {
89
example.href = `https://www.blstsecurity.com/ScanSwagger/6209ab14-089e-4108-8bb2-5b22deab9751?tab=Summary&promo=${document.getElementById("cyRefcode").attributes['data-ref'].value || 'blst'}&domain=${document.location.origin}`
910
}
11+
if (nathan) {
12+
nathan.href = `https://www.blstsecurity.com?promo=${document.getElementById("cyRefcode").attributes['data-ref'].value || 'blst'}&domain=${document.location.origin}`
13+
}
1014

1115
let blstFile; //this is a global variable and we'll use it inside multiple functions
1216

0 commit comments

Comments
 (0)