From 1d99622123848c3752fec00249f786e1bf65ef06 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Mon, 23 Aug 2021 12:01:25 +0100 Subject: [PATCH] chore: release 5.3.1 --- manifest/chrome.json | 2 +- manifest/firefox.json | 2 +- package.json | 4 ++-- src/modules/constants.js | 2 +- src/modules/helpers/settings/index.js | 4 ++-- src/modules/helpers/stats.js | 2 +- src/translations/de_DE.json | 2 +- src/translations/en_GB.json | 2 +- src/translations/en_US.json | 2 +- src/translations/es.json | 2 +- src/translations/fr.json | 2 +- src/translations/nl.json | 2 +- src/translations/no.json | 2 +- src/translations/ru.json | 2 +- src/translations/zh_CN.json | 2 +- 15 files changed, 17 insertions(+), 17 deletions(-) diff --git a/manifest/chrome.json b/manifest/chrome.json index 1760d9c1..d1f9f1fe 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.0", + "version": "5.3.1", "homepage_url": "https://muetab.com", "browser_action": { "default_icon": "icons/128x128.png" diff --git a/manifest/firefox.json b/manifest/firefox.json index fb625c46..60e59801 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.0", + "version": "5.3.1", "homepage_url": "https://muetab.com", "browser_action": { "default_icon": "icons/128x128.png" diff --git a/package.json b/package.json index 0912f448..3c597be1 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.0", + "version": "5.3.1", "dependencies": { "@emotion/react": "^11.4.1", "@emotion/styled": "^11.3.0", @@ -55,7 +55,7 @@ "start": "webpack serve", "build": "webpack --mode=production", "chrome": "cp manifest/chrome.json build/manifest.json && cp -r manifest/_locales build/_locales && cp manifest/background-chrome.js build/background-chrome.js", - "firefox": "rm -rf build/_locales && cp manifest/firefox.json build/manifest.json && cp manifest/background-firefox.js build/background-firefox.js" + "firefox": "rm -rf build/_locales && cp manifest/firefox.json build/manifest.json" }, "browserslist": { "production": [ diff --git a/src/modules/constants.js b/src/modules/constants.js index 0014cbc6..936d0898 100644 --- a/src/modules/constants.js +++ b/src/modules/constants.js @@ -35,4 +35,4 @@ export const OFFLINE_IMAGES = 20; // Version export const BETA_VERSION = false; -export const VERSION = '5.3.0'; +export const VERSION = '5.3.1'; diff --git a/src/modules/helpers/settings/index.js b/src/modules/helpers/settings/index.js index dceb649d..e2b20423 100644 --- a/src/modules/helpers/settings/index.js +++ b/src/modules/helpers/settings/index.js @@ -91,8 +91,8 @@ export function loadSettings(hotreload) { const js = localStorage.getItem('customjs'); if (js) { try { - // eslint-disable-next-line no-new-func - Function(`'use strict'; return (${js})`)(); + // eslint-disable-next-line no-eval + eval(js); } catch (e) { console.error('Failed to run custom JS: ', e); } diff --git a/src/modules/helpers/stats.js b/src/modules/helpers/stats.js index 923a696d..70a85125 100644 --- a/src/modules/helpers/stats.js +++ b/src/modules/helpers/stats.js @@ -58,7 +58,7 @@ export default class Stats { payload: { website: this.id, url: '/', - language: localStorage.getItem('language').replace('_', '-'), + language: window.languagecode.replace('_', '-'), screen: `${window.screen.width}x${window.screen.height}` } }) diff --git a/src/translations/de_DE.json b/src/translations/de_DE.json index 5fcfb687..c109bdba 100644 --- a/src/translations/de_DE.json +++ b/src/translations/de_DE.json @@ -292,7 +292,7 @@ }, "stats": { "title": "Stats", - "warning": "You need to enable usage data in order to use this feature. This will also post anonymous statistics to our umami instance.", + "warning": "You need to enable usage data in order to use this feature. This will post anonymous statistics to our umami instance.", "sections": { "tabs_opened": "Tabs opened", "backgrounds_favourited": "Backgrounds favourited", diff --git a/src/translations/en_GB.json b/src/translations/en_GB.json index 055a9d68..e939c17f 100644 --- a/src/translations/en_GB.json +++ b/src/translations/en_GB.json @@ -292,7 +292,7 @@ }, "stats": { "title": "Stats", - "warning": "You need to enable usage data in order to use this feature. This will also post anonymous statistics to our umami instance.", + "warning": "You need to enable usage data in order to use this feature. This will post anonymous statistics to our umami instance.", "sections": { "tabs_opened": "Tabs opened", "backgrounds_favourited": "Backgrounds favourited", diff --git a/src/translations/en_US.json b/src/translations/en_US.json index 2f699ead..7c4eb09a 100644 --- a/src/translations/en_US.json +++ b/src/translations/en_US.json @@ -292,7 +292,7 @@ }, "stats": { "title": "Stats", - "warning": "You need to enable usage data in order to use this feature. This will also post anonymous statistics to our umami instance.", + "warning": "You need to enable usage data in order to use this feature. This will post anonymous statistics to our umami instance.", "sections": { "tabs_opened": "Tabs opened", "backgrounds_favourited": "Backgrounds favourited", diff --git a/src/translations/es.json b/src/translations/es.json index 23f3e563..9dcfb988 100644 --- a/src/translations/es.json +++ b/src/translations/es.json @@ -292,7 +292,7 @@ }, "stats": { "title": "Estadísticas", - "warning": "Tienes que activar las estadísticas de uso para poder utilizar esta función. Esto también enviará estadísticas anónimas a nuestra instancia de umami.", + "warning": "Tienes que activar las estadísticas de uso para poder utilizar esta función. Esto enviará estadísticas anónimas a nuestra instancia de umami.", "sections": { "tabs_opened": "Pestañas abiertas", "backgrounds_favourited": "Fondos favoritos", diff --git a/src/translations/fr.json b/src/translations/fr.json index 0f2aaca8..705cd380 100644 --- a/src/translations/fr.json +++ b/src/translations/fr.json @@ -292,7 +292,7 @@ }, "stats": { "title": "Stats", - "warning": "You need to enable usage data in order to use this feature. This will also post anonymous statistics to our umami instance.", + "warning": "You need to enable usage data in order to use this feature. This will post anonymous statistics to our umami instance.", "sections": { "tabs_opened": "Tabs opened", "backgrounds_favourited": "Backgrounds favourited", diff --git a/src/translations/nl.json b/src/translations/nl.json index fc2a6a08..a17fcbea 100644 --- a/src/translations/nl.json +++ b/src/translations/nl.json @@ -292,7 +292,7 @@ }, "stats": { "title": "Stats", - "warning": "You need to enable usage data in order to use this feature. This will also post anonymous statistics to our umami instance.", + "warning": "You need to enable usage data in order to use this feature. This will post anonymous statistics to our umami instance.", "sections": { "tabs_opened": "Tabs opened", "backgrounds_favourited": "Backgrounds favourited", diff --git a/src/translations/no.json b/src/translations/no.json index 936f5885..1eb58deb 100644 --- a/src/translations/no.json +++ b/src/translations/no.json @@ -292,7 +292,7 @@ }, "stats": { "title": "Stats", - "warning": "You need to enable usage data in order to use this feature. This will also post anonymous statistics to our umami instance.", + "warning": "You need to enable usage data in order to use this feature. This will post anonymous statistics to our umami instance.", "sections": { "tabs_opened": "Tabs opened", "backgrounds_favourited": "Backgrounds favourited", diff --git a/src/translations/ru.json b/src/translations/ru.json index f93bf0fb..c53e55c5 100644 --- a/src/translations/ru.json +++ b/src/translations/ru.json @@ -292,7 +292,7 @@ }, "stats": { "title": "Stats", - "warning": "You need to enable usage data in order to use this feature. This will also post anonymous statistics to our umami instance.", + "warning": "You need to enable usage data in order to use this feature. This will post anonymous statistics to our umami instance.", "sections": { "tabs_opened": "Tabs opened", "backgrounds_favourited": "Backgrounds favourited", diff --git a/src/translations/zh_CN.json b/src/translations/zh_CN.json index 939d9934..25354b43 100644 --- a/src/translations/zh_CN.json +++ b/src/translations/zh_CN.json @@ -292,7 +292,7 @@ }, "stats": { "title": "Stats", - "warning": "You need to enable usage data in order to use this feature. This will also post anonymous statistics to our umami instance.", + "warning": "You need to enable usage data in order to use this feature. This will post anonymous statistics to our umami instance.", "sections": { "tabs_opened": "Tabs opened", "backgrounds_favourited": "Backgrounds favourited",