Fix reload telemetry payload.
This commit is contained in:
parent
fc789a49ac
commit
06d381b931
1 changed files with 4 additions and 4 deletions
|
@ -63,6 +63,10 @@ async function denySubmit(redirectUrl) {
|
||||||
tabId: tab[0].id,
|
tabId: tab[0].id,
|
||||||
pageUrl: redirectUrl
|
pageUrl: redirectUrl
|
||||||
});
|
});
|
||||||
|
browser.runtime.sendMessage({
|
||||||
|
method: "sendTelemetryPayload",
|
||||||
|
event: "click-to-reload-page-in-same-container",
|
||||||
|
});
|
||||||
document.location.replace(redirectUrl);
|
document.location.replace(redirectUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,10 +74,6 @@ load();
|
||||||
|
|
||||||
async function openInContainer(redirectUrl, cookieStoreId) {
|
async function openInContainer(redirectUrl, cookieStoreId) {
|
||||||
const tabs = await browser.tabs.query({active: true});
|
const tabs = await browser.tabs.query({active: true});
|
||||||
browser.runtime.sendMessage({
|
|
||||||
method: "sendTelemetryPayload",
|
|
||||||
event: "click-to-reload-page-in-same-container",
|
|
||||||
});
|
|
||||||
await browser.tabs.create({
|
await browser.tabs.create({
|
||||||
cookieStoreId,
|
cookieStoreId,
|
||||||
url: redirectUrl
|
url: redirectUrl
|
||||||
|
|
Loading…
Add table
Reference in a new issue