From 7c9920329fa481669aa2347aa09736ec7c54607a Mon Sep 17 00:00:00 2001 From: Victor Azevedo <34415964+victrme@users.noreply.github.com> Date: Thu, 21 Oct 2021 10:18:17 +0200 Subject: [PATCH] New version not applying hotfix --- src/scripts/background.js | 2 +- src/scripts/script.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/background.js b/src/scripts/background.js index 7116dbba..841a30b2 100644 --- a/src/scripts/background.js +++ b/src/scripts/background.js @@ -1,6 +1,6 @@ +const isOnChrome = navigator.userAgent.includes('Chrome') const newTab = () => chrome.tabs.create({ url: 'chrome://newtab' }) const goodbye = () => 'https://bonjourr.fr/goodbye' + (isOnChrome ? '?from=Chrome' : '?from=Firefox') -const isOnChrome = navigator.userAgent.includes('Chrome') chrome.runtime.setUninstallURL(goodbye()) diff --git a/src/scripts/script.js b/src/scripts/script.js index 28c243c4..90983c57 100644 --- a/src/scripts/script.js +++ b/src/scripts/script.js @@ -2550,6 +2550,7 @@ window.onload = function () { ) data = filterImports(data) + data.about.version = BonjourrVersion chrome.storage.sync.set(isExtension ? data : { import: data }) startup(data) break