diff --git a/src/components/widgets/time/Clock.jsx b/src/components/widgets/time/Clock.jsx index 34f5e101..f8207109 100644 --- a/src/components/widgets/time/Clock.jsx +++ b/src/components/widgets/time/Clock.jsx @@ -58,7 +58,8 @@ export default class Clock extends PureComponent { } this.setState({ - time: time + time: time, + ampm: '' }); } else { // 12 hour diff --git a/src/modules/helpers/date.js b/src/modules/helpers/date.js index 62e7ee65..6295be73 100644 --- a/src/modules/helpers/date.js +++ b/src/modules/helpers/date.js @@ -13,8 +13,8 @@ export function nth(d) { default: return d + 'th'; } -} +}; export function convertTimezone(date, tz) { return new Date((typeof date === 'string' ? new Date(date) : date).toLocaleString('en-US', { timeZone: tz })); -} +}; diff --git a/src/modules/helpers/marketplace.js b/src/modules/helpers/marketplace.js index 025c7e55..424973fe 100644 --- a/src/modules/helpers/marketplace.js +++ b/src/modules/helpers/marketplace.js @@ -4,7 +4,7 @@ import EventBus from './eventbus'; export function urlParser(input) { const urlPattern = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()!@:%_+.~#?&//=]*)/; return input.replace(urlPattern, '$&'); -} +}; export function uninstall(type, name) { switch (type) { @@ -40,7 +40,7 @@ export function uninstall(type, name) { } } localStorage.setItem('installed', JSON.stringify(installed)); -} +}; export function install(type, input, sideload) { switch (type) { @@ -96,4 +96,4 @@ export function install(type, input, sideload) { } localStorage.setItem('installed', JSON.stringify(installed)); -} +}; diff --git a/src/modules/helpers/settings/index.js b/src/modules/helpers/settings/index.js index 44cf02cf..fbef60db 100644 --- a/src/modules/helpers/settings/index.js +++ b/src/modules/helpers/settings/index.js @@ -25,7 +25,7 @@ export function setDefaultSettings(reset) { // Finally we set this to true so it doesn't run the function on every load localStorage.setItem('firstRun', true); -} +}; export function loadSettings(hotreload) { document.getElementById('widgets').style.zoom = localStorage.getItem('widgetzoom') + '%'; @@ -121,7 +121,7 @@ export function loadSettings(hotreload) { ██ Feedback: hello@muetab.com ██ █████████████████████████████████████████████████████████████ `); -} +}; // in a nutshell, this function saves all of the current settings, resets them, sets the defaults and then overrides // the new settings with the old saved messages where they exist @@ -141,4 +141,4 @@ export function moveSettings() { Object.keys(settings).forEach((key) => { localStorage.setItem(key, settings[key]); }); -} \ No newline at end of file +}; diff --git a/src/modules/helpers/settings/modals.js b/src/modules/helpers/settings/modals.js index 82675040..0127e2b1 100644 --- a/src/modules/helpers/settings/modals.js +++ b/src/modules/helpers/settings/modals.js @@ -24,7 +24,7 @@ export function exportSettings() { }); saveFile(settings, 'mue-settings.json'); window.stats.postEvent('tab', 'Settings exported'); -} +}; export function importSettings(e) { const content = JSON.parse(e.target.result); @@ -35,4 +35,4 @@ export function importSettings(e) { toast(window.language.toasts.imported); window.stats.postEvent('tab', 'Settings imported'); -} +};