Skip to content

Commit

Permalink
Added notification monitor link on Vine Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
FMaz008 committed Oct 7, 2024
1 parent fdce7a4 commit 1b44d0a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/bootloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ async function init() {
fetchProductsDatav5(); //Obtain the data to fill the toolbars with it.

displayAccountData();
initAddNotificationMonitorLink();
showGDPRPopup();
await initFlushTplCache(); //And display the version changelog popup
initInjectScript();
Expand Down Expand Up @@ -222,6 +223,20 @@ function initSetPageTitle() {
}
}

function initAddNotificationMonitorLink() {
const ul = document.querySelector("ul.vvp-header-links-container");
if (ul) {
const li = document.createElement("li");
li.classList.add("vvp-header-link");
ul.appendChild(li);

const a = document.createElement("a");
a.href = chrome.runtime.getURL("page/notifications.html");
a.target = "_blank";
a.innerText = "VH Notifications Monitor";
li.appendChild(a);
}
}
async function initCreateTabs() {
//Create the Discard grid
showRuntime("BOOT: Creating tabs system");
Expand Down

0 comments on commit 1b44d0a

Please sign in to comment.