Skip to content

Commit 02571be

Browse files
committed
Fix instant tracker navigation
1 parent b74211d commit 02571be

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/html/tracker-bypass.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,10 @@ function updateTrackerMessage(url) {
4646
trackerInfoElement.textContent = '';
4747
trackerInfoElement.appendChild(newDiv);
4848

49-
if (
50-
brws.storage.local.get(
51-
'options',
52-
(result) => result.options.optionInstantNavigationTrackers
53-
)
54-
) {
49+
brws.storage.local.get('options').then((result) => {
50+
if (!result.options.optionInstantNavigationTrackers) return;
5551
window.location.replace(url);
56-
}
52+
});
5753
}
5854

5955
async function resolveTracker(url) {

src/js/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function clearCrowdIgnoredURLs() {
1919
}
2020

2121
function firstrun(details) {
22-
if (details.reason == 'install') {
22+
if (details.reason == 'install' || details.reason == 'update') {
2323
brws.tabs.create({ url: 'https://fastforward.team/firstrun' });
2424
ffclipboardClear();
2525
brws.storage.local.set({ tempDisableCrowd: 'false' });

0 commit comments

Comments
 (0)