Skip to content

Commit

Permalink
Update widget.js
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerWow authored Aug 1, 2022
1 parent 452c4b6 commit 1ff84ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ const dropArea = document.querySelector(".blst-drag-area"),
input = dropArea.querySelector(".blst-input");

const example = document.querySelector("#example_href");
const nathan = document.querySelector("#nathan_href");
if (example) {
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}`
}
if (nathan) {
nathan.href = `https://www.blstsecurity.com?promo=${document.getElementById("cyRefcode").attributes['data-ref'].value || 'blst'}&domain=${document.location.origin}`
}

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

Expand Down

0 comments on commit 1ff84ed

Please sign in to comment.