From daee291aa932957323d33b9eaeb2683b3a2ed52a Mon Sep 17 00:00:00 2001 From: David Ralph Date: Mon, 23 Aug 2021 15:52:05 +0100 Subject: [PATCH] fix: welcome text, remove old buggy global widget zoom --- manifest/chrome.json | 2 +- manifest/firefox.json | 2 +- package.json | 2 +- src/components/modals/main/settings/sections/Appearance.jsx | 4 ---- src/components/modals/main/settings/sections/Search.jsx | 1 + src/components/modals/welcome/WelcomeSections.jsx | 4 +--- src/modules/constants.js | 2 +- src/modules/default_settings.json | 4 ---- src/modules/helpers/settings/index.js | 2 -- 9 files changed, 6 insertions(+), 17 deletions(-) diff --git a/manifest/chrome.json b/manifest/chrome.json index 0e67a010..8d1bbe6e 100644 --- a/manifest/chrome.json +++ b/manifest/chrome.json @@ -4,7 +4,7 @@ "default_locale": "en", "name": "__MSG_name__", "description": "__MSG_description__", - "version": "5.3.2", + "version": "5.3.3", "homepage_url": "https://muetab.com", "browser_action": { "default_icon": "icons/128x128.png" diff --git a/manifest/firefox.json b/manifest/firefox.json index 88066c1b..ad7a5941 100644 --- a/manifest/firefox.json +++ b/manifest/firefox.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "Mue", "description": "Fast, open and free-to-use new tab page for modern browsers.", - "version": "5.3.2", + "version": "5.3.3", "homepage_url": "https://muetab.com", "browser_action": { "default_icon": "icons/128x128.png" diff --git a/package.json b/package.json index 85986dfb..28fead32 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "homepage": "https://muetab.com", "bugs": "https://github.com/mue/mue/issues/new?assignees=&labels=bug&template=bug-report.md&title=%5BBUG%5D", "license": "BSD-3-Clause", - "version": "5.3.2", + "version": "5.3.3", "dependencies": { "@emotion/react": "^11.4.1", "@emotion/styled": "^11.3.0", diff --git a/src/components/modals/main/settings/sections/Appearance.jsx b/src/components/modals/main/settings/sections/Appearance.jsx index 2153d6bc..027d663c 100644 --- a/src/components/modals/main/settings/sections/Appearance.jsx +++ b/src/components/modals/main/settings/sections/Appearance.jsx @@ -55,10 +55,6 @@ export default function AppearanceSettings() {

{appearance.accessibility.title}

- {/* not supported on firefox */} - {(navigator.userAgent.includes('Chrome') && typeof InstallTrigger === 'undefined') ? - - : null} ); diff --git a/src/components/modals/main/settings/sections/Search.jsx b/src/components/modals/main/settings/sections/Search.jsx index 335b5e4d..21762f76 100644 --- a/src/components/modals/main/settings/sections/Search.jsx +++ b/src/components/modals/main/settings/sections/Search.jsx @@ -74,6 +74,7 @@ export default class SearchSettings extends PureComponent { <>

{search.title}

+ {/* not supported on firefox */} {(navigator.userAgent.includes('Chrome') && typeof InstallTrigger === 'undefined') ? : null} diff --git a/src/components/modals/welcome/WelcomeSections.jsx b/src/components/modals/welcome/WelcomeSections.jsx index f9c5d4dd..cc3c67f6 100644 --- a/src/components/modals/welcome/WelcomeSections.jsx +++ b/src/components/modals/welcome/WelcomeSections.jsx @@ -126,7 +126,7 @@ export default class WelcomeSections extends PureComponent { ); - const { appearance, advanced, background, quicklinks, stats } = window.language.modals.main.settings.sections; + const { appearance, advanced, background, quicklinks } = window.language.modals.main.settings.sections; const languageSettings = window.language.modals.main.settings.sections.language; const theme = ( @@ -178,8 +178,6 @@ export default class WelcomeSections extends PureComponent {

{language.sections.privacy.ddg_proxy_description}

- -

{language.sections.privacy.stats_description}

{language.sections.privacy.links.title}

{language.sections.privacy.links.privacy_policy}

diff --git a/src/modules/constants.js b/src/modules/constants.js index f995cf3d..9d748dd5 100644 --- a/src/modules/constants.js +++ b/src/modules/constants.js @@ -31,4 +31,4 @@ export const OFFLINE_IMAGES = 20; // Version export const BETA_VERSION = false; -export const VERSION = '5.3.2'; +export const VERSION = '5.3.3'; diff --git a/src/modules/default_settings.json b/src/modules/default_settings.json index abb192e9..cd702286 100644 --- a/src/modules/default_settings.json +++ b/src/modules/default_settings.json @@ -107,10 +107,6 @@ "name": "shortFormat", "value": "dots" }, - { - "name": "widgetzoom", - "value": 100 - }, { "name": "toastDisplayTime", "value": 2500 diff --git a/src/modules/helpers/settings/index.js b/src/modules/helpers/settings/index.js index e2b20423..69620e1c 100644 --- a/src/modules/helpers/settings/index.js +++ b/src/modules/helpers/settings/index.js @@ -28,8 +28,6 @@ export function setDefaultSettings(reset) { } export function loadSettings(hotreload) { - document.getElementById('widgets').style.zoom = localStorage.getItem('widgetzoom') + '%'; - switch (localStorage.getItem('theme')) { case 'dark': document.body.classList.add('dark');