Fix #749: remove 'new features' from private window new tab page

This commit is contained in:
Oliver Blanthorn 2019-05-26 23:30:04 +01:00
parent 92a0dbbc2a
commit 05ca6fc68e
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -13,7 +13,7 @@ function getChangelogDiv() {
function updateChangelogStatus() {
const changelogDiv = getChangelogDiv()
const changelogContent = changelogDiv.textContent
if (localStorage.changelogContent === changelogContent) {
if (browser.extension.inIncognitoContext || (localStorage.changelogContent === changelogContent)) {
const changelogButton = document.querySelector('input[id^="spoiler"]')
if (!changelogButton) {
console.error("Couldn't find changelog button!")