Skip to content

Commit 452c4b6

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/widget.js

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ const dropArea = document.querySelector(".blst-drag-area"),
22
dragText = dropArea.querySelector(".blst-title"),
33
button = dropArea.querySelector(".blst-button"),
44
input = dropArea.querySelector(".blst-input");
5+
6+
const example = document.querySelector("#example_href");
7+
if (example) {
8+
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}`
9+
}
10+
511
let blstFile; //this is a global variable and we'll use it inside multiple functions
612

713
input.addEventListener("change", (event) => {

0 commit comments

Comments
 (0)