in src/js/popup.js [2235:2261]
async prepare() {
const { mozillaVpnServers } = await browser.storage.local.get("mozillaVpnServers");
const identity = Logic.currentIdentity();
const listWrapper = document.getElementById("moz-vpn-server-list");
const chooseLocationTitle = document.getElementById("vpn-server-list-title");
const titleClassList = chooseLocationTitle.classList;
listWrapper.onscroll = () => {
const titleHasShadow = titleClassList.contains("drop-shadow");
if (listWrapper.scrollTop < 48 && titleHasShadow) {
titleClassList.remove("drop-shadow");
}
if (!titleHasShadow && listWrapper.scrollTop > 48 ) {
titleClassList.add("drop-shadow");
}
};
if (document.querySelectorAll(".server-list-item").length < 2) {
this.makeServerList(mozillaVpnServers);
}
const proxyData = await proxifiedContainers.retrieve(identity.cookieStoreId);
if (proxyData) {
this.checkActiveServer(proxyData.proxy);
}
}